# Dispose()

> Implementation of IDisposable.Dispose. Opens the gate. If all gates are open, events in the queue are processed.

## Definition

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

```csharp
public void Dispose()
```
