25 lines
581 B
C#
25 lines
581 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using UnityEditor.UI;
|
|
|
|
[CustomEditor(typeof(NewButton))]
|
|
public class NBE : ButtonEditor
|
|
{
|
|
private SerializedProperty IsOn;
|
|
|
|
protected override void OnEnable()
|
|
{
|
|
base.OnEnable();
|
|
IsOn = serializedObject.FindProperty("m_IsOn");
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
serializedObject.Update();
|
|
EditorGUILayout.PropertyField(IsOn);
|
|
serializedObject.ApplyModifiedProperties();
|
|
base.OnInspectorGUI();
|
|
}
|
|
} |