@@ -33,7 +33,8 @@ public class GameObjectInfoPanel
33
33
Text ActiveSelfText ;
34
34
Toggle IsStaticToggle ;
35
35
36
- InputFieldRef SceneInput ;
36
+ ButtonRef SceneButton ;
37
+
37
38
InputFieldRef InstanceIDInput ;
38
39
InputFieldRef TagInput ;
39
40
@@ -100,7 +101,7 @@ public void UpdateGameObjectInfo(bool firstUpdate, bool force)
100
101
if ( force || Target . scene . handle != lastSceneHandle )
101
102
{
102
103
lastSceneHandle = Target . scene . handle ;
103
- SceneInput . Text = Target . scene . IsValid ( ) ? Target . scene . name : "None (Asset/Resource)" ;
104
+ SceneButton . ButtonText . text = Target . scene . IsValid ( ) ? Target . scene . name : "None (Asset/Resource)" ;
104
105
}
105
106
106
107
if ( force || ( ! TagInput . Component . isFocused && Target . tag != lastTag ) )
@@ -228,6 +229,11 @@ void OnTagEndEdit(string value)
228
229
ExplorerCore . LogWarning ( $ "Exception setting tag! { ex . ReflectionExToString ( ) } ") ;
229
230
}
230
231
}
232
+
233
+ void OnSceneButtonClicked ( )
234
+ {
235
+ InspectorManager . Inspect ( Target . scene ) ;
236
+ }
231
237
232
238
void OnExploreButtonClicked ( )
233
239
{
@@ -383,10 +389,9 @@ public void Create()
383
389
Text sceneLabel = UIFactory . CreateLabel ( thirdrow , "SceneLabel" , "Scene:" , TextAnchor . MiddleLeft , Color . grey ) ;
384
390
UIFactory . SetLayoutElement ( sceneLabel . gameObject , minHeight : 25 , minWidth : 50 ) ;
385
391
386
- SceneInput = UIFactory . CreateInputField ( thirdrow , "SceneInput" , "untitled" ) ;
387
- UIFactory . SetLayoutElement ( SceneInput . Component . gameObject , minHeight : 25 , minWidth : 120 , flexibleWidth : 999 ) ;
388
- SceneInput . Component . readOnly = true ;
389
- SceneInput . Component . textComponent . color = new Color ( 0.7f , 0.7f , 0.7f ) ;
392
+ SceneButton = UIFactory . CreateButton ( thirdrow , "SceneButton" , "untitled" ) ;
393
+ UIFactory . SetLayoutElement ( SceneButton . Component . gameObject , minHeight : 25 , minWidth : 120 , flexibleWidth : 999 ) ;
394
+ SceneButton . OnClick += OnSceneButtonClicked ;
390
395
391
396
// Layer
392
397
Text layerLabel = UIFactory . CreateLabel ( thirdrow , "LayerLabel" , "Layer:" , TextAnchor . MiddleLeft , Color . grey ) ;
0 commit comments