# ReleaseMouse

> Stops an event handler from capturing the mouse.

## Definition

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

## ReleaseMouse(IEventHandler)

Stops an event handler from capturing the mouse.

```csharp
public static void ReleaseMouse(this IEventHandler handler)
```

### Parameters

**** (\[IEventHandler]\(/engine/6000.5/script-reference/unityengine/uielements/ieventhandler)): The event handler to stop capturing the mouse. If this handler is not assigned to capturing the mouse, nothing happens.

## ReleaseMouse()

Stops an event handler from capturing the mouse.

```csharp
public static void ReleaseMouse()
```
