2018-07-26 17:56:21 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 09:03:48 +08:00
<class name= "AnimationNodeOneShot" inherits= "AnimationNode" version= "4.0" >
2018-07-26 17:56:21 +08:00
<brief_description >
2020-03-04 02:21:21 +08:00
Plays an animation once in [AnimationNodeBlendTree].
2018-07-26 17:56:21 +08:00
</brief_description>
<description >
2020-03-04 02:21:21 +08:00
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.
2018-07-26 17:56:21 +08:00
</description>
<tutorials >
2020-08-05 20:43:40 +08:00
<link title= "AnimationTree" > https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html</link>
2020-10-01 16:34:47 +08:00
<link title= "Third Person Shooter Demo" > https://godotengine.org/asset-library/asset/678</link>
2018-07-26 17:56:21 +08:00
</tutorials>
<methods >
<method name= "get_mix_mode" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" enum= "AnimationNodeOneShot.MixMode" />
2018-07-26 17:56:21 +08:00
<description >
</description>
</method>
<method name= "set_mix_mode" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
<argument index= "0" name= "mode" type= "int" enum= "AnimationNodeOneShot.MixMode" />
2018-07-26 17:56:21 +08:00
<description >
</description>
</method>
</methods>
<members >
2019-06-29 18:38:01 +08:00
<member name= "autorestart" type= "bool" setter= "set_autorestart" getter= "has_autorestart" default= "false" >
2020-03-04 02:21:21 +08:00
If [code]true[/code], the sub-animation will restart automatically after finishing.
2018-07-26 17:56:21 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "autorestart_delay" type= "float" setter= "set_autorestart_delay" getter= "get_autorestart_delay" default= "1.0" >
2020-03-04 02:21:21 +08:00
The delay after which the automatic restart is triggered, in seconds.
2018-07-26 17:56:21 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "autorestart_random_delay" type= "float" setter= "set_autorestart_random_delay" getter= "get_autorestart_random_delay" default= "0.0" >
2020-03-04 02:21:21 +08:00
If [member autorestart] is [code]true[/code], a random additional delay (in seconds) between 0 and this value will be added to [member autorestart_delay].
2018-07-26 17:56:21 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "fadein_time" type= "float" setter= "set_fadein_time" getter= "get_fadein_time" default= "0.1" >
2018-07-26 17:56:21 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "fadeout_time" type= "float" setter= "set_fadeout_time" getter= "get_fadeout_time" default= "0.1" >
2018-07-26 17:56:21 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "sync" type= "bool" setter= "set_use_sync" getter= "is_using_sync" default= "false" >
2018-07-26 17:56:21 +08:00
</member>
</members>
<constants >
<constant name= "MIX_MODE_BLEND" value= "0" enum= "MixMode" >
</constant>
<constant name= "MIX_MODE_ADD" value= "1" enum= "MixMode" >
</constant>
</constants>
</class>