AnimationPlayer class Animation

Drives playback and blending for the AnimationClips on a single node subtree.

Each animated Node lazily owns one AnimationPlayer; applications usually interact with it indirectly through Node.createAnimationClip and AnimationClip.

update is called automatically by the scene's per-frame pre-pass. It advances every clip by the frame delta, blends their results into the bind pose, and writes the resulting transforms back to the bound nodes.

Constructors

AnimationPlayer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAnimationClip(Animation animation, Node bindTarget) AnimationClip
Instantiates animation as an AnimationClip bound to bindTarget and registers it with this player.
getClipByName(String name) AnimationClip?
Returns the registered clip whose Animation.name equals name, or null if none is registered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebind(Node newRoot, {List<Animation> animations = const []}) → void
Re-binds every registered clip to the swapped-in subtree rooted at newRoot and rebuilds the bind-pose table from the new nodes' current transforms. Each clip keeps its playback state; its animation is refreshed from animations by name when a match exists (so reloaded curves take effect) and left as-is otherwise.
toString() String
A string representation of this object.
inherited
update(double deltaSeconds) → void
Advances all registered clips by deltaSeconds and applies their blended result to the bound nodes.

Operators

operator ==(Object other) bool
The equality operator.
inherited