# UnregisterCallback

> Remove callback from the instance.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## UnregisterCallback\<T>(EventCallback\<T>, TrickleDown)

Remove callback from the instance.

```csharp
public void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
```

### Parameters

**** (\[EventCallback\<T>]\(/engine/6000.0/script-reference/unityengine/uielements/eventcallback1)): The callback to remove. If this callback was never registered, nothing happens.**** (\[TrickleDown]\(/engine/6000.0/script-reference/unityengine/uielements/trickledown)): Set this parameter to true to remove the callback from the TrickleDown phase. Set this parameter to false to remove the callback from the BubbleUp phase.

## UnregisterCallback\<T, U>(EventCallback\<T, T>, TrickleDown)

Remove callback from the instance.

```csharp
public void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
```

### Parameters

**** (\[EventCallback\<T, T>]\(/engine/6000.0/script-reference/unityengine/uielements/eventcallback1)): The callback to remove. If this callback was never registered, nothing happens.**** (\[TrickleDown]\(/engine/6000.0/script-reference/unityengine/uielements/trickledown)): Set this parameter to true to remove the callback from the TrickleDown phase. Set this parameter to false to remove the callback from the BubbleUp phase.
