This commit is contained in:
2025-02-19 17:24:26 +09:00
commit b6e88274e8
8796 changed files with 1728296 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
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;
}
}
}