Version: 2022.1
Apply styles with C# scripts
Dispatching events

Control behavior with events

UI Toolkit provides events that communicate user actions or notifications to visual elements. The UI(User Interface) Allows a user to interact with your application. Unity currently supports three UI systems. More info
See in Glossary
Toolkit event systemA way of sending events to objects in the application based on input, be it keyboard, mouse, touch, or custom input. The Event System consists of a few components that work together to send events. More info
See in Glossary
shares the same terminology and event naming as HTML events. The following concepts are the core of the event system:

Event structure

Event types fit into a hierarchy based on the EventBase class. Each event type implements an interface that defines the common characteristics for all events of the same family.

The event reference page provides more information on the behavior and characteristics of each event family.

Apply styles with C# scripts
Dispatching events
Copyright © 2020 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961