From 8746a69c622003f16542eb04c8212845c94dca9b 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, 8 Sep 2025 10:32:45 +0800 Subject: [PATCH] modify --- Runtime/UI/UIBase/UIHolderObjectBase.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Runtime/UI/UIBase/UIHolderObjectBase.cs b/Runtime/UI/UIBase/UIHolderObjectBase.cs index 476a9a5..bd5dad7 100644 --- a/Runtime/UI/UIBase/UIHolderObjectBase.cs +++ b/Runtime/UI/UIBase/UIHolderObjectBase.cs @@ -23,7 +23,17 @@ namespace AlicizaX.UI.Runtime #if UNITY_EDITOR && ALICIZAX_UI_EXTENSION_SUPPORT private void SetHotKeyButtons() { - hotButtons = transform.GetComponentsInChildren(true); + var btns = transform.GetComponentsInChildren(true); + var hotBtnList = new List(); + for (int i = 0; i < btns.Length; i++) + { + if (btns[i].HasHotKeyRefrenced()) + { + hotBtnList.Add(btns[i]); + } + } + + hotButtons = hotBtnList.ToArray(); } #endif