Delegate EventCallback<TEventType, TCallbackArgs>
Defines the structure of a callback that can be registered onto an element for an event type, along with a custom user defined argument.
Namespace: UnityEngine.UIElements
Syntax
public delegate void EventCallback<in TEventType, in TCallbackArgs>(TEventType evt, TCallbackArgs userArgs);
Parameters
Type | Name | Description |
---|---|---|
TEventType | evt | The event instance. |
TCallbackArgs | userArgs | The user argument instance. |
Type Parameters
Name | Description |
---|---|
TEventType | The type of event registered for the callback. |
TCallbackArgs | The type of the user argument. |