FreeformBlendSpace2DData(NativeArray<float2>, FreeformBlendSpace2DMode, Allocator)
Precomputes the data of a freeform blend space.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Constructor
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
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.
The allocator for the data. Call FreeformBlendSpace2DData.Dispose to release it.
Remarks
The constructor copies , 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.
values