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

Methods

MixModeget_mix_mode ( ) const
voidset_mix_mode ( MixMode mode )

Enumerations

enum MixMode:

  • MIX_MODE_BLEND = 0
  • MIX_MODE_ADD = 1

Property Descriptions

Defaultfalse
Setterset_autorestart(value)
Getterhas_autorestart()

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


Default1.0
Setterset_autorestart_delay(value)
Getterget_autorestart_delay()

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


  • float autorestart_random_delay
Default0.0
Setterset_autorestart_random_delay(value)
Getterget_autorestart_random_delay()

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


Default0.1
Setterset_fadein_time(value)
Getterget_fadein_time()

Default0.1
Setterset_fadeout_time(value)
Getterget_fadeout_time()

Defaultfalse
Setterset_use_sync(value)
Getteris_using_sync()

Method Descriptions


Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.