This commit is contained in:
陈思海 2025-09-08 10:32:45 +08:00
parent 2b5a3a59ec
commit 8746a69c62

View File

@ -23,7 +23,17 @@ namespace AlicizaX.UI.Runtime
#if UNITY_EDITOR && ALICIZAX_UI_EXTENSION_SUPPORT
private void SetHotKeyButtons()
{
hotButtons = transform.GetComponentsInChildren<UXButton>(true);
var btns = transform.GetComponentsInChildren<UXButton>(true);
var hotBtnList = new List<UXButton>();
for (int i = 0; i < btns.Length; i++)
{
if (btns[i].HasHotKeyRefrenced())
{
hotBtnList.Add(btns[i]);
}
}
hotButtons = hotBtnList.ToArray();
}
#endif