Files
aibis-dream/Assets/Plugins/CleanFlatUI/Scripts/Editor/ContextMenu/ContextMenuRightClickEditor.cs
T
2024-10-10 12:46:34 +08:00

31 lines
906 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEditor;
using UnityEditorInternal;
namespace RainbowArt.CleanFlatUI
{
[CustomEditor(typeof(ContextMenuRightClick))]
public class ContextMenuRightClickEditor : Editor
{
SerializedProperty contextMenu;
SerializedProperty areaScope;
protected virtual void OnEnable()
{
contextMenu = serializedObject.FindProperty("contextMenu");
areaScope = serializedObject.FindProperty("areaScope");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
EditorGUILayout.PropertyField(contextMenu);
EditorGUILayout.PropertyField(areaScope);
serializedObject.ApplyModifiedProperties();
}
}
}