This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| namespace SceneSelector | |
| { | |
| [CreateAssetMenu(fileName = "SceneSelectorConfig", menuName = "Editor/Scene Selector Configuration", order = 1)] | |
| public class SceneSelectorConfigSO : ScriptableObject | |
| { | |
| public string SceneFilter = "t:Scene"; | |
| public string[] SceneNames; | |
| public string[] PreferredScenePaths; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEngine; | |
| namespace MyNamespace.Common.EditTime | |
| { | |
| [CustomEditor(typeof(MonoBehaviour), true), CanEditMultipleObjects] | |
| public class NamespaceCustomLogoDrawer : UnityEditor.Editor | |
| { | |
| private const string NAMESPACE_PREFIX = "MyNamespace"; | |
| private Texture2D _namespaceIcon; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| public class SceneSavedNotification | |
| { | |
| private const string PREFS_KEY = "SceneSavedNotificationShow"; | |
| [MenuItem("Tools/Toggle Scene Saved Notification")] | |
| private static void ToggleNotification() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| If you want to enable running scripts, you can set the execution policy to RemoteSigned or Unrestricted. Keep in mind that this will reduce the security of your system, so make sure you understand the implications. | |
| You can set the execution policy for the current user to RemoteSigned with: | |
| Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
| Set-ExecutionPolicy Unrestricted -Scope CurrentUser | |
| Set-ExecutionPolicy Restricted -Scope CurrentUser (Default) | |
| #> | |
| <# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.Events; | |
| using TMPro; | |
| public class CountdownController : MonoBehaviour | |
| { | |
| [SerializeField] private int _count = 3; | |
| [SerializeField] private TMP_Text _countdownLabel; | |
| [SerializeField] private string _countdownFinishText = "Go!"; |