38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
|
|
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();
|
|
}
|
|
}
|
|
}
|