EventCallbackGroup
Creates a callback group allowing the provided callbacks to be registered and unregistered all at once on any element of a compatible type.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
EventCallbackGroup(EventCallbackDefinition<T>[])
Creates a callback group allowing the provided callbacks to be registered and unregistered all at once on any element of a compatible type.
public EventCallbackGroup(params EventCallbackDefinition<TElement>[] callbacks)
Parameters
The callbacks included in this group.
EventCallbackGroup(ReadOnlySpan<EventCallbackDefinition<T>>)
Creates a callback group allowing the provided callbacks to be registered and unregistered all at once on any element of a compatible type.
public EventCallbackGroup(ReadOnlySpan<EventCallbackDefinition<TElement>> callbacks)
Parameters
The callbacks included in this group.