Documentation

Unity Engine

Unity Engine

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 2 months ago

Definition

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.