uncacheAction method

void uncacheAction(
  1. AnimationClip clip, [
  2. dynamic optionalRoot
])

Deallocates all memory resources for an action. Before using this method make sure to call AnimationAction.stop to deactivate the action.

Implementation

/// make sure to call [AnimationAction.stop]() to deactivate the action.
void uncacheAction(AnimationClip clip, [optionalRoot]) {
  final action = existingAction(clip, optionalRoot);

  if (action != null) {
    deactivateAction(action);
    _removeInactiveAction(action);
  }
}