From 8bfaf098c7ab061d6363d3603c773cd9c48f17d7 Mon Sep 17 00:00:00 2001 From: Silc Renew Date: Tue, 10 Jan 2023 18:15:16 +0900 Subject: Add next/reset function to AnimationStateMachine --- doc/classes/AnimationNodeStateMachinePlayback.xml | 11 +++++++++++ doc/classes/AnimationNodeStateMachineTransition.xml | 3 +++ doc/classes/AnimationNodeTransition.xml | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/AnimationNodeStateMachinePlayback.xml b/doc/classes/AnimationNodeStateMachinePlayback.xml index 8f53ef0dcf..7e01be12c4 100644 --- a/doc/classes/AnimationNodeStateMachinePlayback.xml +++ b/doc/classes/AnimationNodeStateMachinePlayback.xml @@ -50,11 +50,19 @@ Returns [code]true[/code] if an animation is playing. + + + + If there is a next path by travel or auto advance, immediately transitions from the current state to the next state. + + + Starts playing the given animation. + If [param reset] is [code]true[/code], the animation is played from the beginning. @@ -66,8 +74,11 @@ + 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. diff --git a/doc/classes/AnimationNodeStateMachineTransition.xml b/doc/classes/AnimationNodeStateMachineTransition.xml index 814b2d0052..eee25fad7c 100644 --- a/doc/classes/AnimationNodeStateMachineTransition.xml +++ b/doc/classes/AnimationNodeStateMachineTransition.xml @@ -28,6 +28,9 @@ Lower priority transitions are preferred when travelling through the tree via [method AnimationNodeStateMachinePlayback.travel] or [member advance_mode] is set to [constant ADVANCE_MODE_AUTO]. + + If [code]true[/code], the destination animation is played back from the beginning when switched. + The transition type. diff --git a/doc/classes/AnimationNodeTransition.xml b/doc/classes/AnimationNodeTransition.xml index f6e2fc5eb2..cd5e45fbdf 100644 --- a/doc/classes/AnimationNodeTransition.xml +++ b/doc/classes/AnimationNodeTransition.xml @@ -43,7 +43,7 @@ The number of enabled input ports for this node. - + If [code]true[/code], the destination animation is played back from the beginning when switched. -- cgit v1.2.3