From 85c7cb0b6841bf9a724090143c16922063bb3bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Fri, 5 Sep 2025 20:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/UI/UIBase/UIHolderObjectBase.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Runtime/UI/UIBase/UIHolderObjectBase.cs b/Runtime/UI/UIBase/UIHolderObjectBase.cs index 7c65d82..476a9a5 100644 --- a/Runtime/UI/UIBase/UIHolderObjectBase.cs +++ b/Runtime/UI/UIBase/UIHolderObjectBase.cs @@ -21,7 +21,6 @@ namespace AlicizaX.UI.Runtime #endif #if UNITY_EDITOR && ALICIZAX_UI_EXTENSION_SUPPORT - [Button("SetHotKeyButtons")] private void SetHotKeyButtons() { hotButtons = transform.GetComponentsInChildren(true); @@ -29,7 +28,14 @@ namespace AlicizaX.UI.Runtime #endif #if ALICIZAX_UI_EXTENSION_SUPPORT - [SerializeField] [HideLabel] [ReadOnly] + + +#if UNITY_EDITOR + [InlineButton("SetHotKeyButtons")] +#endif + + [SerializeField] + [HideLabel] internal UXButton[] hotButtons; internal void BindHotKeys()