AnimationNodeTransition

Inherits: AnimationNodeSync < AnimationNode < Resource < RefCounted < Object

A generic animation transition node for AnimationTree.

Description

Simple state machine for cases which don't require a more advanced AnimationNodeStateMachine. Animations can be connected to the inputs and transition times can be specified.

Tutorials

Properties

int

enabled_inputs

0

bool

from_start

true

Curve

xfade_curve

float

xfade_time

0.0

Methods

String

get_input_caption ( int input ) const

bool

is_input_set_as_auto_advance ( int input ) const

void

set_input_as_auto_advance ( int input, bool enable )

void

set_input_caption ( int input, String caption )

Property Descriptions

  • int enabled_inputs

Default

0

Setter

set_enabled_inputs(value)

Getter

get_enabled_inputs()

The number of enabled input ports for this node.


Default

true

Setter

set_from_start(value)

Getter

is_from_start()

If true, the destination animation is played back from the beginning when switched.


Setter

set_xfade_curve(value)

Getter

get_xfade_curve()


Default

0.0

Setter

set_xfade_time(value)

Getter

get_xfade_time()

Cross-fading time (in seconds) between each animation connected to the inputs.

Method Descriptions

  • String get_input_caption ( int input ) const


  • bool is_input_set_as_auto_advance ( int input ) const


  • void set_input_as_auto_advance ( int input, bool enable )


  • void set_input_caption ( int input, String caption )