# Dispose(PackerData)

> Helper function to cleanup native arrays of PackerData struct.

## Definition

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

```csharp
public void Dispose(ScriptablePacker.PackerData packerData)
```

### Parameters

**** (\[PackerData]\(/engine/6000.5/script-reference/unityeditor/u2d/scriptablepacker/packerdata)): A struct containing input data to pack sprites.
