init
This commit is contained in:
24
Assets/Editor/RTG/RTSceneInspector.cs
Normal file
24
Assets/Editor/RTG/RTSceneInspector.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace RTG.Editor
|
||||
{
|
||||
[CustomEditor(typeof(RTScene))]
|
||||
public class RTSceneInspector : UnityEditor.Editor
|
||||
{
|
||||
private RTScene _scene;
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
_scene.Settings.RenderEditorGUI(_scene);
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_scene = target as RTScene;
|
||||
|
||||
_scene.Settings.FoldoutLabel = "Settings";
|
||||
_scene.Settings.UsesFoldout = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user