修复 CommonButton 导航功能失效的问题并重新绑定 UI 事件引用

This commit is contained in:
SepComet
2026-06-15 09:59:28 +08:00
parent 9c51f551c4
commit 9dd4f57e6a
6 changed files with 1723 additions and 87 deletions
@@ -10,7 +10,6 @@ namespace SepCore.Editor
{
private SerializedProperty _background;
private SerializedProperty _onPointerEnterAction;
private SerializedProperty _onClickAction;
private SerializedProperty _onPointerExitAction;
protected override void OnEnable()
@@ -18,7 +17,6 @@ namespace SepCore.Editor
base.OnEnable();
_background = serializedObject.FindProperty("_background");
_onPointerEnterAction = serializedObject.FindProperty("_onPointerEnterAction");
_onClickAction = serializedObject.FindProperty("_onClickAction");
_onPointerExitAction = serializedObject.FindProperty("_onPointerExitAction");
}
@@ -31,7 +29,6 @@ namespace SepCore.Editor
EditorGUILayout.LabelField("Common Button", EditorStyles.boldLabel);
EditorGUILayout.PropertyField(_background);
EditorGUILayout.PropertyField(_onPointerEnterAction);
EditorGUILayout.PropertyField(_onClickAction);
EditorGUILayout.PropertyField(_onPointerExitAction);
serializedObject.ApplyModifiedProperties();
}