@@ -29,8 +29,8 @@ public SceneExplorer(ObjectExplorerPanel parent)
29
29
SceneHandler . OnLoadedScenesChanged += SceneHandler_OnLoadedScenesChanged ;
30
30
}
31
31
32
- public override GameObject UIRoot => m_uiRoot ;
33
- private GameObject m_uiRoot ;
32
+ public override GameObject UIRoot => uiRoot ;
33
+ private GameObject uiRoot ;
34
34
35
35
/// <summary>
36
36
/// Whether to automatically update per auto-update interval or not.
@@ -180,13 +180,13 @@ private void TryLoadScene(LoadSceneMode mode, Dropdown allSceneDrop)
180
180
181
181
public override void ConstructUI ( GameObject content )
182
182
{
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 ) ;
186
186
187
187
// Tool bar (top area)
188
188
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 ) ,
190
190
new Color ( 0.15f , 0.15f , 0.15f ) ) ;
191
191
192
192
// Scene selector dropdown
@@ -240,7 +240,7 @@ public override void ConstructUI(GameObject content)
240
240
241
241
// Transform Tree
242
242
243
- var scrollPool = UIFactory . CreateScrollPool < TransformCell > ( m_uiRoot , "TransformTree" , out GameObject scrollObj ,
243
+ var scrollPool = UIFactory . CreateScrollPool < TransformCell > ( uiRoot , "TransformTree" , out GameObject scrollObj ,
244
244
out GameObject scrollContent , new Color ( 0.11f , 0.11f , 0.11f ) ) ;
245
245
UIFactory . SetLayoutElement ( scrollObj , flexibleHeight : 9999 ) ;
246
246
UIFactory . SetLayoutElement ( scrollContent , flexibleHeight : 9999 ) ;
@@ -312,7 +312,7 @@ private void ConstructSceneLoader()
312
312
{
313
313
if ( SceneHandler . WasAbleToGetScenesInBuild )
314
314
{
315
- var sceneLoaderObj = UIFactory . CreateVerticalGroup ( m_uiRoot , "SceneLoader" , true , true , true , true ) ;
315
+ var sceneLoaderObj = UIFactory . CreateVerticalGroup ( uiRoot , "SceneLoader" , true , true , true , true ) ;
316
316
UIFactory . SetLayoutElement ( sceneLoaderObj , minHeight : 25 ) ;
317
317
318
318
// Title
0 commit comments