# UnregisterEventHandler(string, Func<string, object[], object>)

> Unregisters a handler from a specific event.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.MPE](/engine/6000.6/script-reference/unityeditor/mpe.md)
* **Assembly:** UnityEditor.CoreModule

## UnregisterEventHandler(string, Func\<string, Object\[], Object>)

```csharp
public static void UnregisterEventHandler(string eventType, Func<string, object[], object> handler)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The event to unregister from.**** (\[Func\<string, Object\[], Object>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): The handler to unregister.
