Files
Studio/Assets/Editor/RTG/RTSceneInspector.cs
2025-02-19 17:24:26 +09:00

25 lines
519 B
C#

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;
}
}
}