# Dispose()

> Dispose all the NativeArray inside the struct.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

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