Dispose()
Releases the memory that the data holds.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public void Dispose()
Remarks
Call this method when you no longer need the data. After you call it, FreeformBlendSpace2DData.IsCreated is false. If safety checks are enabled, passing the data to a weight function of BlendSpaceUtility then throws an exception. Without safety checks, the function reads released memory, and the result is undefined.