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