AnimationNodeAnimation
Inherits: AnimationRootNode < AnimationNode < Resource < RefCounted < Object
Description
Section titled “Description”An input animation for an AnimationNodeBlendTree.
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
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| bool | advance_on_start |
false |
| StringName | animation |
&"" |
| Animation.LoopMode | loop_mode |
|
| PlayMode | play_mode |
0 |
| float | start_offset |
|
| bool | stretch_time_scale |
|
| float | timeline_length |
|
| bool | use_custom_timeline |
false |
Enumerations
Section titled “Enumerations”PlayMode
enum PlayMode
PLAY_MODE_FORWARD = 0
Plays animation in forward direction.
PLAY_MODE_BACKWARD = 1
Plays animation in backward direction.
Property descriptions
Section titled “Property descriptions”advance_on_start
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().
animation
StringName animation = &""
Animation to use as an output. It is one of the animations provided by AnimationTree.anim_player.
loop_mode
Animation.LoopMode loop_mode
If use_custom_timeline is true, override the loop settings of the original Animation resource with the value.
Note: If the Animation.loop_mode isn’t set to looping, the Animation.track_set_interpolation_loop_wrap() option will not be respected. If you cannot get the expected behavior, consider duplicating the Animation resource and changing the loop settings.
play_mode
PlayMode play_mode = 0
Determines the playback direction of the animation.
start_offset
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.
stretch_time_scale
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.
timeline_length
float timeline_length
The length of the custom timeline.
If stretch_time_scale is true, scales the animation to this length.
use_custom_timeline
bool use_custom_timeline = false
If true, AnimationNode provides an animation based on the Animation resource with some parameters adjusted.
