init
This commit is contained in:
31
Assets/Editor/RTG/RTSceneGridInspector.cs
Normal file
31
Assets/Editor/RTG/RTSceneGridInspector.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user