diff --git a/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs b/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs index 97e6c96..4263535 100644 --- a/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs +++ b/Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs @@ -62,9 +62,8 @@ namespace UnityEngine.UI if (_holderObjectBase == null) { _holderObjectBase = gameObject.GetComponent(); + CollectUXHotkeys(); } - // 在编辑器模式下自动收集(可根据需求移除) - CollectUXHotkeys(); } #endif