createAnimationClip method

AnimationClip createAnimationClip(
  1. Animation animation
)

Instantiates animation as an AnimationClip bound to this node.

The returned clip starts paused at time 0; call AnimationClip.play to begin playback. Multiple clips may be created on the same node and are blended together by an internal AnimationPlayer each frame.

To enumerate animations parsed from a model, use parsedAnimations or findAnimationByName.

Implementation

AnimationClip createAnimationClip(Animation animation) {
  _animationPlayer ??= AnimationPlayer();
  return _animationPlayer!.createAnimationClip(animation, this);
}