Class reference

AnimationNodeAnimation

Inherits AnimationRootNode

An input animation for an AnimationNodeBlendTree.

Description

A resource to add to an AnimationNodeBlendTree. Only has one output port using the animation property. Used as an input for AnimationNodes that blend animations together.

Properties

bool advance_on_start = false

If true, 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 of AnimationPlayer.play().

int play_mode = 0

Determines the playback direction of the animation.

float start_offset

If use_custom_timeline is true, offset the start position of the animation. This is useful for adjusting which foot steps first in 3D walking animations.

bool stretch_time_scale

If true, scales the time so that the length specified in timeline_length is one cycle. This is useful for matching the periods of walking and running animations. If false, the original animation length is respected. If you set the loop to loop_mode, the animation will loop in timeline_length.

bool use_custom_timeline = false

If true, AnimationNode provides an animation based on the Animation resource with some parameters adjusted.

Constants

PLAY_MODE_FORWARD = 0

Enum: PlayMode

Plays animation in forward direction.

PLAY_MODE_BACKWARD = 1

Enum: PlayMode

Plays animation in backward direction.

Tutorials

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.