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
bool sync false

Methods

MixMode get_mix_mode ( ) const
void set_mix_mode ( MixMode mode )

Enumerations

enum MixMode:

  • MIX_MODE_BLEND = 0
  • MIX_MODE_ADD = 1

Property Descriptions

bool autorestart

Default false
Setter set_autorestart(value)
Getter has_autorestart()

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

float autorestart_delay

Default 1.0
Setter set_autorestart_delay(value)
Getter get_autorestart_delay()

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

float autorestart_random_delay

Default 0.0
Setter set_autorestart_random_delay(value)
Getter 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

Default 0.1
Setter set_fadein_time(value)
Getter get_fadein_time()

float fadeout_time

Default 0.1
Setter set_fadeout_time(value)
Getter get_fadeout_time()

bool sync

Default false
Setter set_use_sync(value)
Getter is_using_sync()

Method Descriptions

MixMode get_mix_mode ( ) const

void set_mix_mode ( MixMode mode )

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_animationnodeoneshot.html