过程版本存档
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using UnityEditor;
|
||||
using UnityEditorInternal;
|
||||
|
||||
namespace RainbowArt.CleanFlatUI
|
||||
{
|
||||
[CustomEditor(typeof(ModalWindowMultiButtonUI))]
|
||||
public class ModalWindowMultiButtonUIEditor : Editor
|
||||
{
|
||||
SerializedProperty button;
|
||||
SerializedProperty modalWindow;
|
||||
|
||||
protected virtual void OnEnable()
|
||||
{
|
||||
button = serializedObject.FindProperty("button");
|
||||
modalWindow = serializedObject.FindProperty("modalWindow");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
EditorGUILayout.PropertyField(button);
|
||||
EditorGUILayout.PropertyField(modalWindow);
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user