class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource AnimationLibrary
Container for Animation resources.

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

Signal animation_added<>( StringName name=, name:StringName=, ):Signal

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

Signal animation_changed<>( StringName name=, name:StringName=, ):Signal

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.

Signal animation_removed<>( StringName name=, name:StringName=, ):Signal

Emitted when an Animation stored with the key name is removed.

Signal animation_renamed<>( StringName name=, name:StringName=, StringName to_name=, to_name:StringName=, ):Signal

Emitted when the key for an Animation is changed, from name to to_name.

Error add_animation<>( StringName name=, name:StringName=, Animation animation=, animation:Animation=, ):Error

Adds the animation to the library, accessible by the key name.

Animation get_animation<>( StringName name=, name:StringName=, ):Animation

Returns the Animation with the key name. If the animation does not exist, null is returned and an error is logged.

Array get_animation_list<>():Array

Returns the keys for the Animations stored in the library.

int get_animation_list_size<>():int

Returns the key count for the Animations stored in the library.

bool has_animation<>( StringName name=, name:StringName=, ):bool

Returns true if the library stores an Animation with name as the key.

void remove_animation<>( StringName name=, name:StringName=, ):void

Removes the Animation with the key name.

void rename_animation<>( StringName name=, name:StringName=, StringName newname=, newname:StringName=, ):void

Changes the key of the Animation associated with the key name to newname.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...