Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

AnimationLibrary

Inherits: Resource < RefCounted < Object

Container for Animation resources.

Description

An animation library stores a set of animations accessible through StringName keys, for use with AnimationPlayer nodes.

Tutorials

Methods

Error

add_animation ( StringName name, Animation animation )

Animation

get_animation ( StringName name ) const

StringName[]

get_animation_list ( ) const

bool

has_animation ( StringName name ) const

void

remove_animation ( StringName name )

void

rename_animation ( StringName name, StringName newname )


Signals

animation_added ( StringName name )

Emitted when an Animation is added, under the key name.


animation_changed ( StringName name )

Emitted when there's a change in one of the animations, e.g. tracks are added, moved or have changed paths. name is the key of the animation that was changed.

See also Resource.changed, which this acts as a relay for.


animation_removed ( StringName name )

Emitted when an