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