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

31 lines
904 B
C#

using UnityEngine;
using UnityEditor;
namespace RTG
{
[CustomEditor(typeof(RTSceneGrid))]
public class RTSceneGridInspector : UnityEditor.Editor
{
private RTSceneGrid _sceneGrid;
public override void OnInspectorGUI()
{
_sceneGrid.Settings.UsesFoldout = true;
_sceneGrid.Settings.FoldoutLabel = "Settings";
_sceneGrid.Settings.RenderEditorGUI(_sceneGrid);
_sceneGrid.LookAndFeel.UsesFoldout = true;
_sceneGrid.LookAndFeel.FoldoutLabel = "Look & feel";
_sceneGrid.LookAndFeel.RenderEditorGUI(_sceneGrid);
_sceneGrid.Hotkeys.UsesFoldout = true;
_sceneGrid.Hotkeys.FoldoutLabel = "Hotkeys";
_sceneGrid.Hotkeys.RenderEditorGUI(_sceneGrid);
}
private void OnEnable()
{
_sceneGrid = target as RTSceneGrid;
}
}
}