@@ -29,8 +29,8 @@ public SceneExplorer(ObjectExplorerPanel parent)
2929 SceneHandler . OnLoadedScenesChanged += SceneHandler_OnLoadedScenesChanged ;
3030 }
3131
32- public override GameObject UIRoot => m_uiRoot ;
33- private GameObject m_uiRoot ;
32+ public override GameObject UIRoot => uiRoot ;
33+ private GameObject uiRoot ;
3434
3535 /// <summary>
3636 /// Whether to automatically update per auto-update interval or not.
@@ -180,13 +180,13 @@ private void TryLoadScene(LoadSceneMode mode, Dropdown allSceneDrop)
180180
181181 public override void ConstructUI ( GameObject content )
182182 {
183- m_uiRoot = UIFactory . CreateUIObject ( "SceneExplorer" , content ) ;
184- UIFactory . SetLayoutGroup < VerticalLayoutGroup > ( m_uiRoot , true , true , true , true , 0 , 2 , 2 , 2 , 2 ) ;
185- UIFactory . SetLayoutElement ( m_uiRoot , flexibleHeight : 9999 ) ;
183+ uiRoot = UIFactory . CreateUIObject ( "SceneExplorer" , content ) ;
184+ UIFactory . SetLayoutGroup < VerticalLayoutGroup > ( uiRoot , true , true , true , true , 0 , 2 , 2 , 2 , 2 ) ;
185+ UIFactory . SetLayoutElement ( uiRoot , flexibleHeight : 9999 ) ;
186186
187187 // Tool bar (top area)
188188
189- var toolbar = UIFactory . CreateVerticalGroup ( m_uiRoot , "Toolbar" , true , true , true , true , 2 , new Vector4 ( 2 , 2 , 2 , 2 ) ,
189+ var toolbar = UIFactory . CreateVerticalGroup ( uiRoot , "Toolbar" , true , true , true , true , 2 , new Vector4 ( 2 , 2 , 2 , 2 ) ,
190190 new Color ( 0.15f , 0.15f , 0.15f ) ) ;
191191
192192 // Scene selector dropdown
@@ -240,7 +240,7 @@ public override void ConstructUI(GameObject content)
240240
241241 // Transform Tree
242242
243- var scrollPool = UIFactory . CreateScrollPool < TransformCell > ( m_uiRoot , "TransformTree" , out GameObject scrollObj ,
243+ var scrollPool = UIFactory . CreateScrollPool < TransformCell > ( uiRoot , "TransformTree" , out GameObject scrollObj ,
244244 out GameObject scrollContent , new Color ( 0.11f , 0.11f , 0.11f ) ) ;
245245 UIFactory . SetLayoutElement ( scrollObj , flexibleHeight : 9999 ) ;
246246 UIFactory . SetLayoutElement ( scrollContent , flexibleHeight : 9999 ) ;
@@ -312,7 +312,7 @@ private void ConstructSceneLoader()
312312 {
313313 if ( SceneHandler . WasAbleToGetScenesInBuild )
314314 {
315- var sceneLoaderObj = UIFactory . CreateVerticalGroup ( m_uiRoot , "SceneLoader" , true , true , true , true ) ;
315+ var sceneLoaderObj = UIFactory . CreateVerticalGroup ( uiRoot , "SceneLoader" , true , true , true , true ) ;
316316 UIFactory . SetLayoutElement ( sceneLoaderObj , minHeight : 25 ) ;
317317
318318 // Title
0 commit comments