AnimationNodeOneShot

Inherits: AnimationNode < Resource < Reference < Object

Plays an animation once in AnimationNodeBlendTree.

Description

A resource to add to an AnimationNodeBlendTree. This node will execute a sub-animation and return once it finishes. Blend times for fading in and out can be customized, as well as filters.

Tutorials

Properties

bool

autorestart

false

float

autorestart_delay

1.0

float

autorestart_random_delay

0.0

float

fadein_time

0.1

float

fadeout_time

0.1

MixMode

mix_mode

0

bool

sync

false


Enumerations

enum MixMode:

MixMode MIX_MODE_BLEND = 0

MixMode MIX_MODE_ADD = 1


Property Descriptions

bool autorestart = false

  • void set_autorestart ( bool value )

  • bool has_autorestart ( )

If true, the sub-animation will restart automatically after finishing.


float autorestart_delay = 1.0

  • void set_autorestart_delay ( float value )

  • float get_autorestart_delay ( )

The delay after which the automatic restart is triggered, in seconds.


float autorestart_random_delay = 0.0

  • void set_autorestart_random_delay ( float value )

  • float get_autorestart_random_delay ( )

If autorestart is true, a random additional delay (in seconds) between 0 and this value will be added to autorestart_delay.


float fadein_time = 0.1

  • void set_fadein_time ( float value )

  • float get_fadein_time ( )

There is currently no description for this property. Please help us by contributing one!


float fadeout_time = 0.1

  • void set_fadeout_time ( float value )

  • float get_fadeout_time ( )

There is currently no description for this property. Please help us by contributing one!


MixMode mix_mode = 0

There is currently no description for this property. Please help us by contributing one!


bool sync = false

  • void set_use_sync ( bool value )

  • bool is_using_sync ( )

There is currently no description for this property. Please help us by contributing one!