---
title: FreeformBlendSpace2DData(NativeArray<float2>, FreeformBlendSpace2DMode, Allocator)
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/ctor
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/ctor.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:36:36.794Z
locale: en-us
---

# FreeformBlendSpace2DData(NativeArray<float2>, FreeformBlendSpace2DMode, Allocator)

> Precomputes the data of a freeform blend space.

## Definition

* **Type:** Constructor
* **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 FreeformBlendSpace2DData(NativeArray<float2> values, FreeformBlendSpace2DMode mode, Allocator allocator)
```

### Parameters

**** (\[NativeArray\<float2>]\(/engine/7000.0/script-reference/unity/collections/nativearray1)): The position of each animation in the blend space.**** (\[FreeformBlendSpace2DMode]\(/engine/7000.0/script-reference/unity/animations/freeformblendspace2dmode)): The freeform algorithm to precompute the data for.**** (\[Allocator]\(/engine/7000.0/script-reference/unity/collections/allocator)): The allocator for the data. Call [FreeformBlendSpace2DData.Dispose](/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/dispose.md) to release it.

### Remarks

The constructor copies `values`, so you can dispose the source array after the call. It stores data for each pair of animations, so the memory use grows with the square of the number of animations. Call [FreeformBlendSpace2DData.Dispose](/engine/7000.0/script-reference/unity/animations/freeformblendspace2ddata/dispose.md) to release the memory.
