Add next/reset function to AnimationStateMachine
This commit is contained in:
@@ -50,11 +50,19 @@
|
||||
Returns [code]true[/code] if an animation is playing.
|
||||
</description>
|
||||
</method>
|
||||
<method name="next">
|
||||
<return type="void" />
|
||||
<description>
|
||||
If there is a next path by travel or auto advance, immediately transitions from the current state to the next state.
|
||||
</description>
|
||||
</method>
|
||||
<method name="start">
|
||||
<return type="void" />
|
||||
<param index="0" name="node" type="StringName" />
|
||||
<param index="1" name="reset" type="bool" default="true" />
|
||||
<description>
|
||||
Starts playing the given animation.
|
||||
If [param reset] is [code]true[/code], the animation is played from the beginning.
|
||||
</description>
|
||||
</method>
|
||||
<method name="stop">
|
||||
@@ -66,8 +74,11 @@
|
||||
<method name="travel">
|
||||
<return type="void" />
|
||||
<param index="0" name="to_node" type="StringName" />
|
||||
<param index="1" name="reset_on_teleport" type="bool" default="true" />
|
||||
<description>
|
||||
Transitions from the current state to another one, following the shortest path.
|
||||
If the path does not connect from the current state, the animation will play after the state teleports.
|
||||
If [param reset_on_teleport] is [code]true[/code], the animation is played from the beginning when the travel cause a teleportation.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
||||
Reference in New Issue
Block a user