modify
This commit is contained in:
parent
2b5a3a59ec
commit
8746a69c62
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user