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