summaryrefslogtreecommitdiff
path: root/doc/classes/AnimationNodeTransition.xml
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2023-01-31 00:40:45 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2023-01-31 00:40:45 +0900
commit2dd3abd0c51ee3358af0f22b0a5d7a839570d4fc (patch)
tree36de68f05f7e2ca63f890b7788815838263959a3 /doc/classes/AnimationNodeTransition.xml
parent312011fadec12c98eb14791bb0b19c63463d98ae (diff)
Allow the Reset option of NodeTransition to be set for each Input
Diffstat (limited to 'doc/classes/AnimationNodeTransition.xml')
-rw-r--r--doc/classes/AnimationNodeTransition.xml18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/classes/AnimationNodeTransition.xml b/doc/classes/AnimationNodeTransition.xml
index 57e79ac161..a067b0a9ba 100644
--- a/doc/classes/AnimationNodeTransition.xml
+++ b/doc/classes/AnimationNodeTransition.xml
@@ -12,6 +12,13 @@
<link title="Third Person Shooter Demo">https://godotengine.org/asset-library/asset/678</link>
</tutorials>
<methods>
+ <method name="is_input_reset" qualifiers="const">
+ <return type="bool" />
+ <param index="0" name="input" type="int" />
+ <description>
+ Returns whether the animation restarts when the animation transitions from the other animation.
+ </description>
+ </method>
<method name="is_input_set_as_auto_advance" qualifiers="const">
<return type="bool" />
<param index="0" name="input" type="int" />
@@ -27,14 +34,19 @@
Enables or disables auto-advance for the given [param input] index. If enabled, state changes to the next input after playing the animation once. If enabled for the last input state, it loops to the first.
</description>
</method>
+ <method name="set_input_reset">
+ <return type="void" />
+ <param index="0" name="input" type="int" />
+ <param index="1" name="enable" type="bool" />
+ <description>
+ If [code]true[/code], the destination animation is restarted when the animation transitions.
+ </description>
+ </method>
</methods>
<members>
<member name="input_count" type="int" setter="set_input_count" getter="get_input_count" default="0">
The number of enabled input ports for this node.
</member>
- <member name="reset" type="bool" setter="set_reset" getter="is_reset" default="true">
- If [code]true[/code], the destination animation is played back from the beginning when switched.
- </member>
<member name="xfade_curve" type="Curve" setter="set_xfade_curve" getter="get_xfade_curve">
Determines how cross-fading between animations is eased. If empty, the transition will be linear.
</member>