From bc64a04339a670409a7570c84061db84b32e1ece Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Mon, 24 Jan 2022 17:49:34 +1100 Subject: [PATCH] Cleanup --- src/ObjectExplorer/SceneExplorer.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ObjectExplorer/SceneExplorer.cs b/src/ObjectExplorer/SceneExplorer.cs index db896b9..0ba7aeb 100644 --- a/src/ObjectExplorer/SceneExplorer.cs +++ b/src/ObjectExplorer/SceneExplorer.cs @@ -29,8 +29,8 @@ namespace UnityExplorer.ObjectExplorer SceneHandler.OnLoadedScenesChanged += SceneHandler_OnLoadedScenesChanged; } - public override GameObject UIRoot => m_uiRoot; - private GameObject m_uiRoot; + public override GameObject UIRoot => uiRoot; + private GameObject uiRoot; /// /// Whether to automatically update per auto-update interval or not. @@ -180,13 +180,13 @@ namespace UnityExplorer.ObjectExplorer public override void ConstructUI(GameObject content) { - m_uiRoot = UIFactory.CreateUIObject("SceneExplorer", content); - UIFactory.SetLayoutGroup(m_uiRoot, true, true, true, true, 0, 2, 2, 2, 2); - UIFactory.SetLayoutElement(m_uiRoot, flexibleHeight: 9999); + uiRoot = UIFactory.CreateUIObject("SceneExplorer", content); + UIFactory.SetLayoutGroup(uiRoot, true, true, true, true, 0, 2, 2, 2, 2); + UIFactory.SetLayoutElement(uiRoot, flexibleHeight: 9999); // Tool bar (top area) - var toolbar = UIFactory.CreateVerticalGroup(m_uiRoot, "Toolbar", true, true, true, true, 2, new Vector4(2, 2, 2, 2), + var toolbar = UIFactory.CreateVerticalGroup(uiRoot, "Toolbar", true, true, true, true, 2, new Vector4(2, 2, 2, 2), new Color(0.15f, 0.15f, 0.15f)); // Scene selector dropdown @@ -240,7 +240,7 @@ namespace UnityExplorer.ObjectExplorer // Transform Tree - var scrollPool = UIFactory.CreateScrollPool(m_uiRoot, "TransformTree", out GameObject scrollObj, + var scrollPool = UIFactory.CreateScrollPool(uiRoot, "TransformTree", out GameObject scrollObj, out GameObject scrollContent, new Color(0.11f, 0.11f, 0.11f)); UIFactory.SetLayoutElement(scrollObj, flexibleHeight: 9999); UIFactory.SetLayoutElement(scrollContent, flexibleHeight: 9999); @@ -312,7 +312,7 @@ namespace UnityExplorer.ObjectExplorer { if (SceneHandler.WasAbleToGetScenesInBuild) { - var sceneLoaderObj = UIFactory.CreateVerticalGroup(m_uiRoot, "SceneLoader", true, true, true, true); + var sceneLoaderObj = UIFactory.CreateVerticalGroup(uiRoot, "SceneLoader", true, true, true, true); UIFactory.SetLayoutElement(sceneLoaderObj, minHeight: 25); // Title