AnimationNodeAnimation

Inherits:AnimationRootNode<AnimationNode<Resource<RefCounted<Object

An input animation for anAnimationNodeBlendTree.

Description

A resource to add to anAnimationNodeBlendTree. Only has one output port using theanimation property. Used as an input forAnimationNodes that blend animations together.

Tutorials

Properties

bool

advance_on_start

false

StringName

animation

&""

LoopMode

loop_mode

PlayMode

play_mode

0

float

start_offset

bool

stretch_time_scale

float

timeline_length

bool

use_custom_timeline

false


Enumerations

enumPlayMode:🔗

PlayModePLAY_MODE_FORWARD =0

Plays animation in forward direction.

PlayModePLAY_MODE_BACKWARD =1

Plays animation in backward direction.


Property Descriptions

booladvance_on_start =false🔗

Iftrue, on receiving a request to play an animation from the start, the first frame is not drawn, but only processed, and playback starts from the next frame.

See also the notes ofAnimationPlayer.play().


StringNameanimation =&""🔗

Animation to use as an output. It is one of the animations provided byAnimationTree.anim_player.


LoopModeloop_mode🔗

Ifuse_custom_timeline istrue, override the loop settings of the originalAnimation resource with the value.

Note: If theAnimation.loop_mode isn't set to looping, theAnimation.track_set_interpolation_loop_wrap() option will not be respected. If you cannot get the expected behavior, consider duplicating theAnimation resource and changing the loop settings.


PlayModeplay_mode =0🔗

Determines the playback direction of the animation.


floatstart_offset🔗

Ifuse_custom_timeline istrue, offset the start position of the animation.

This is useful for adjusting which foot steps first in 3D walking animations.


boolstretch_time_scale🔗

Iftrue, scales the time so that the length specified intimeline_length is one cycle.

This is useful for matching the periods of walking and running animations.

Iffalse, the original animation length is respected. If you set the loop toloop_mode, the animation will loop intimeline_length.


floattimeline_length🔗

Ifuse_custom_timeline istrue, offset the start position of the animation.


booluse_custom_timeline =false🔗

Iftrue,AnimationNode provides an animation based on theAnimation resource with some parameters adjusted.


User-contributed notes

Please read theUser-contributed notes policy before submitting a comment.