com.alicizax.unity.ui.exten.../Editor/UX/Hotkey/UXHotkeyButtonEditor.cs
陈思海 32c0fc13fd 重构
1.重构UXButton
2.主Transition有UXSeletable负责 ,同时兼具导航
3.新增UXSlider  支持平滑过渡 适配手柄
4.优化部分逻辑bug
2025-12-09 15:08:41 +08:00

32 lines
1002 B
C#

using AlicizaX.Editor;
using AlicizaX.UI.Extension;
using UnityEditor;
namespace UnityEngine.UI
{
[CanEditMultipleObjects]
[CustomEditor(typeof(UXHotkeyButton), true)]
internal class UXHotkeyButtonEditor : UXButtonEditor
{
private SerializedProperty _hotKeyRefrence;
private SerializedProperty _hotkeyPressType;
protected override void OnEnable()
{
base.OnEnable();
_hotKeyRefrence = serializedObject.FindProperty("_hotKeyRefrence");
_hotkeyPressType = serializedObject.FindProperty("_hotkeyPressType");
}
protected override void DrawEventTab()
{
base.DrawEventTab();
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
{
EditorGUILayout.PropertyField(_hotKeyRefrence, new GUIContent("InputAction"));
EditorGUILayout.PropertyField(_hotkeyPressType, new GUIContent("PressType"));
}
}
}
}