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