init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace RPGCoreCommon.Settings.Editor
|
||||
{
|
||||
[CustomEditor(typeof(MainSettingsSO))]
|
||||
internal class MainSettingsSODrawer : UnityEditor.Editor
|
||||
{
|
||||
public override VisualElement CreateInspectorGUI()
|
||||
{
|
||||
var rootElement = new VisualElement();
|
||||
|
||||
var button = new Button();
|
||||
button.text = "Open settings editor";
|
||||
button.clicked += SettingsEditorWindow.ShowSettingsEditor;
|
||||
|
||||
rootElement.Add(button);
|
||||
return rootElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user