AnimationNodeOneShot

    Plays an animation once in AnimationNodeBlendTree.

    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.

    enum MixMode:

    • MIX_MODE_BLEND = 0

    • MIX_MODE_ADD = 1

    Default

    false

    Setter

    set_autorestart(value)

    Getter

    has_autorestart()

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


    • autorestart_delay

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


    • float autorestart_random_delay

    Default

    Setter

    set_autorestart_random_delay(value)

    Getter

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


    • fadein_time

    Default

    0.1

    Setter

    set_fadeout_time(value)

    Getter

    get_fadeout_time()



    • sync

    Default

    Setter

    set_use_sync(value)

    is_using_sync()