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