# Dispose()

> Dispose all the NativeArray inside the struct.

## Definition

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

> **Warning:**
>
> **Deprecated.** PickingIncludeExcludeList is deprecated. Use PickingIncludeExcludeEntityIdList instead.

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