---
title: Dispose()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/dispose
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/dispose.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:38:59.845Z
locale: en-us
---

# Dispose()

> Releases the memory that the data holds.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

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

### Remarks

Call this method when you no longer need the data. After you call it, [FreeformBlendSpace2DData.IsCreated](/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/iscreated.md) is false. If safety checks are enabled, passing the data to a weight function of [BlendSpaceUtility](/engine/7000.0/script-reference/unity/animations/blendspaceutility.md) then throws an exception. Without safety checks, the function reads released memory, and the result is undefined.
