# Dispose()

> Dispose all the NativeArray inside the struct.

## Definition

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

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

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