文档

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.
阅读时间1 分钟最后更新于 1 个月前

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.