RegisterCallbackAttribute(Type, CallbackOptions)
Initializes a new instance of the RegisterCallbackAttribute class.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public RegisterCallbackAttribute(Type eventType, CallbackOptions callbackOptions = CallbackOptions.Default)
Parameters
Type of event to handle, for example .
typeof(PointerDownEvent)Options that control how the callback is registered.