AnimationPlayer class
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
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
animationas an AnimationClip bound tobindTargetand registers it with this player. -
getClipByName(
String name) → AnimationClip? -
Returns the registered clip whose Animation.name equals
name, ornullif none is registered. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
double deltaSeconds) → void -
Advances all registered clips by
deltaSecondsand applies their blended result to the bound nodes.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited