# EventCallbackGroup

> Creates a callback group allowing the provided callbacks to be registered and unregistered all at once on any element of a compatible type.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **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.

```csharp
public EventCallbackGroup(params EventCallbackDefinition<TElement>[] callbacks)
```

### Parameters

**** (\[EventCallbackDefinition\<T>\[]]\(/engine/6000.7/script-reference/unityengine/uielements/eventcallbackdefinition)): 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.

```csharp
public EventCallbackGroup(ReadOnlySpan<EventCallbackDefinition<TElement>> callbacks)
```

### Parameters

**** (\[ReadOnlySpan\<EventCallbackDefinition\<T>>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The callbacks included in this group.
