From 1f53bf8be49a295174d97eb6df4969dcaae4ec19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Mon, 22 Dec 2025 10:17:53 +0800 Subject: [PATCH] Update HotkeyBindComponent.cs --- Runtime/UXComponent/Hotkey/HotkeyBindComponent.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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