28 lines
714 B
C#
28 lines
714 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEditor;
|
|
using UnityEditorInternal;
|
|
|
|
namespace RainbowArt.CleanFlatUI
|
|
{
|
|
[CustomEditor(typeof(PopupMenuLeftClick))]
|
|
public class PopupMenuLeftClickEditor : Editor
|
|
{
|
|
SerializedProperty popupMenu;
|
|
|
|
protected virtual void OnEnable()
|
|
{
|
|
popupMenu = serializedObject.FindProperty("popupMenu");
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
serializedObject.Update();
|
|
EditorGUILayout.PropertyField(popupMenu);
|
|
serializedObject.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|