Scripting API

CallbackEventHandler

class in UnityEngine.UIElements · UnityEngine.UIElementsModule

9 of 11 of Unity's membersUnity's documentation
In Tassix

Something that receives events through callbacks.

Methods 6

bool HasBubbleUpHandlers()
bool HasTrickleDownHandlers()
void RegisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
void RegisterCallback<TEventType>(EventCallback<TEventType> callback, CallbackOptions callbackOptions)
void RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TUserArgsType userArgs, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
void RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TUserArgsType userArgs, CallbackOptions callbackOptions)
void RegisterCallbackOnce<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
void RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TUserArgsType userArgs, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
virtual void SendEvent(EventBase e)

Dispatches the event through the element's panel (queued while another is being dispatched).

void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, CallbackOptions callbackOptions)
void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown)
void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, CallbackOptions callbackOptions)

Not in Tassix yet 2

NotifyPropertyChanged UnregisterAllRemovableCallbacks