Documentation

Unity Engine

Unity Engine

Event reference

Understand behavior and characteristics of each event.
Read time 2 minutesLast updated a month ago

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.
Event types fit into a hierarchy based on the EventBase class. Each event family implements an interface that defines the common characteristics of all events of the same family. For example,
BlurEvent
and
FocusEvent
use the FocusEventBase class.
Select any of the event types listed below for more information on the event, its parent class, and links to the API documentation.

Topic

Description

Capture eventsEvents that capture the user's interaction with the UI.
Change eventsEvents that occur when the user changes the state of an element.
Click eventsEvents that occur when the user clicks an element.
Command eventsEvents that occur when the user invokes a command.
Drag and drop eventsEvents that occur when the user drags and drops an element.
Layout eventsEvents that occur when the layout engine changes the layout of an element.
Focus eventsEvents that occur when the user focuses on an element.
Input eventsEvents that occur when the user inputs text.
Keyboard eventsEvents that occur when the user presses a key.
Mouse eventsEvents that occur when the user moves the mouse.
Navigation eventsEvents that occur when the user navigates through the UI.
Panel eventsEvents that occur when the user interacts with a panel.
Pointer eventsEvents that occur when the user interacts with a pointer device.
Tooltip eventsEvents that occur when the user interacts with a tooltip.
Transition eventsEvents that inform you of changes to the state of transition.
ContextualMenu eventsEvents that occur when the user interacts with a contextual menu.
IMGUI eventsEvents that occur when the user interacts with an IMGUI element.

Additional resources