Documentation

Unity Engine

Download Unity

Unity Engine

FreeformBlendSpace2DData(NativeArray<float2>, FreeformBlendSpace2DMode, Allocator)

Precomputes the data of a freeform blend space.
Read time 1 minuteLast updated 4 hours ago

Definition

public FreeformBlendSpace2DData(NativeArray<float2> values, FreeformBlendSpace2DMode mode, Allocator allocator)

Parameters

The position of each animation in the blend space.

The freeform algorithm to precompute the data for.

allocator

The allocator for the data. Call FreeformBlendSpace2DData.Dispose 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 to release the memory.