935 B
935 B
UIExtension UXHotkey 热键注册模块手册
模块概述
UXHotkey 模块统一管理 UI 热键触发器,支持作用域、层级阻断、批量绑定与调试输出。
可调用 API
类型:HotkeyComponent
源码:Packages/com.alicizax.unity.ui.extension/Runtime/UXComponent/Hotkey/HotkeyComponent.cs
HotkeyAction
接口:IHotkeyTrigger
源码:Packages/com.alicizax.unity.ui.extension/Runtime/UXComponent/Hotkey/IHotkeyTrigger.cs
HotkeyAction { get; }
类型:UXHotkeyRegisterManager
源码:Packages/com.alicizax.unity.ui.extension/Runtime/UXComponent/Hotkey/UXHotkeyRegisterManager.cs
GetDebugInfo()- 扩展方法:
BindHotKey(...)、UnBindHotKey(...)、BindHotKeyBatch(...)、UnBindHotKeyBatch(...) - 公开辅助类型:
HotkeyRegistration、HotkeyScope、ActionRegistration、TriggerRegistration
快速上手
trigger.BindHotKey();