Container and player of [Animation] resources.
An animation player is used for general purpose playback of [Animation] resources. It contains a dictionary of animations (referenced by name) and custom blend times between their transitions. Additionally, animations can be played and blended in different channels.
Add an animation resource to the player, which will be later referenced by the "name" argument.
Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip.
Return the name of the next animation in the queue.
Set the name of an animation that will be played after.
The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again.
If animations are queued to play, clear them.
Find an animation name by resource.
Get an [Animation] resource by requesting a name.
Get the list of names of the animations stored in the player.
Return the mode in which the animation player processes. See [method set_animation_process_mode].
Return the name of the animation that will be automatically played when the scene is loaded.
Get the blend time between two animations, referenced by their names.
Return the name of the animation being played.
Get the length (in seconds) of the currently being played animation.
Get the position (in seconds) of the currently being played animation.
Return the default blend time between animations.
Return the playback position (in seconds) in an animation channel (or channel 0 if none is provided).
Return path to root node (see [method set_root]).
Get the speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling).
Request whether an [Animation] name exist within the player.
Return true if the player is active.
Return whether an animation is playing.
Play a given animation by the animation name. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being true can play the animation backwards.
Play a given animation by the animation name in reverse.
Queue an animation for playback once the current one is done.
Remove an animation from the player (by supplying the same name used to add it).
Rename an existing animation.
Seek the animation to a given position in time (in seconds). If 'update' is true, the animation will be updated too, otherwise it will be updated at process time.
Set the player as active (playing). If false, it will do nothing.
Set the mode in which the animation player processes. By default, it processes on idle time (framerate dependent), but using fixed time works well for animating static collision bodies in 2D and 3D. See enum ANIMATION_PROCESS_*.
Set the name of the animation that will be automatically played when the scene is loaded.
Specify a blend time (in seconds) between two animations, referenced by their names.
Set the current animation (even if no playback occurs). Using set_current_animation() and set_active() are similar to calling play().
Set the default blend time between animations.
AnimationPlayer resolves animation track paths from this node (which is relative to itself), by default root is "..", but it can be changed.
Set a speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling).
Stop the currently playing animation.
Stop playback of animations (deprecated).
If the currently being played animation changes, this signal will notify of such change.
Notifies when an animation finished playing.
Notifies when an animation starts playing.
Process animation on fixed process. This is specially useful when animating kinematic bodies.
Process animation on idle process.