diff --git a/src/UI/Models/InputFieldRef.cs b/src/UI/Models/InputFieldRef.cs index 3d539b3..0c61905 100644 --- a/src/UI/Models/InputFieldRef.cs +++ b/src/UI/Models/InputFieldRef.cs @@ -50,8 +50,8 @@ namespace UnityExplorer.UI } public TextGenerator TextGenerator => Component.cachedInputTextGenerator; - public bool ReachedMaxVerts => TextGenerator.vertexCount >= UIManager.MAX_TEXT_VERTS; + public bool ReachedMaxVerts => TextGenerator.vertexCount >= UIManager.MAX_TEXT_VERTS; private void OnInputChanged(string value) { diff --git a/src/UI/ObjectExplorer/SceneHandler.cs b/src/UI/ObjectExplorer/SceneHandler.cs index 527c849..72cc07c 100644 --- a/src/UI/ObjectExplorer/SceneHandler.cs +++ b/src/UI/ObjectExplorer/SceneHandler.cs @@ -15,16 +15,16 @@ namespace UnityExplorer.UI.ObjectExplorer /// public static Scene? SelectedScene { - get => m_selectedScene; + get => selectedScene; internal set { - if (m_selectedScene != null && m_selectedScene == value) + if (selectedScene != null && selectedScene == value) return; - m_selectedScene = value; - OnInspectedSceneChanged?.Invoke((Scene)m_selectedScene); + selectedScene = value; + OnInspectedSceneChanged?.Invoke((Scene)selectedScene); } } - private static Scene? m_selectedScene; + private static Scene? selectedScene; /// /// The GameObjects in the currently inspected scene. @@ -62,7 +62,7 @@ namespace UnityExplorer.UI.ObjectExplorer public static event Action> OnLoadedScenesChanged; /// - /// Equivalent to + 2, to include 'DontDestroyOnLoad'. + /// Equivalent to + 2, to include 'DontDestroyOnLoad' and the 'None' scene. /// public static int LoadedSceneCount => SceneManager.sceneCount + 2;