Version: 2022.1
Synthesize and send events
捕获事件

事件参考

UI Toolkit raises an event when a user interacts with and changes the state of elements from UI Toolkit. The event design is similar to the Event interface for HTML elements.

事件类型适合基于 EventBase 类的层级视图。每个事件系列都实现了一个接口;该接口定义了同一系列的所有事件的共同特征。例如,BlurEventFocusEvent 使用 FocusEventBase 类。

选择下面列出的任何事件类型,以获取有关事件、其父类和 API 文档链接的更多信息。

其他资源

Synthesize and send events
捕获事件
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961