From 584288a32c49afa02e69178381ef1e2abfb5371b Mon Sep 17 00:00:00 2001 From: Ryan Roden-Corrent Date: Sun, 7 Apr 2019 07:21:31 -0400 Subject: Fill out some of the AnimationNode docs. The API docs for various animation nodes are pretty empty, yet the tutorial at https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html contains some details. These details should be included in the API docs so looking up a particular class actually provides some information rather than requiring the user to hunt for a different tutorial. This also links the AnimationTree tutorial and demo in the docs. I've found the TPS demo to be the best resource so far for learning how to use the AnimationTree. This should be easy to find if someone looks up the AnimationTree API docs. Finally, this fixes a param typo in AnimationNodeStateMachine. --- doc/classes/AnimationNodeStateMachineTransition.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/classes/AnimationNodeStateMachineTransition.xml') diff --git a/doc/classes/AnimationNodeStateMachineTransition.xml b/doc/classes/AnimationNodeStateMachineTransition.xml index a1ee381882..d18d5ee630 100644 --- a/doc/classes/AnimationNodeStateMachineTransition.xml +++ b/doc/classes/AnimationNodeStateMachineTransition.xml @@ -12,16 +12,22 @@ + Turn on auto advance when this condition is set. This is a custom text field that can be filled with a variable name. The variable can be modified from code. + Turn on the transition automatically when this state is reached. This works best with [code]SWITCH_MODE_AT_END[/code]. + Don't use this transition during [method AnimationNodeStateMachinePlayback.travel] or [member auto_advance]. + Lower priority transitions are preferred when travelling through the tree via [method AnimationNodeStateMachinePlayback.travel] or [member auto_advance]. + The transition type. + The time to cross-fade between this state and the next. @@ -32,10 +38,13 @@ + Switch to the next state immediately. The current state will end and blend into the beginning of the new one. + Switch to the next state immediately, but will seek the new state to the playback position of the old state. + Wait for the current state playback to end, then switch to the beginning of the next state animation. -- cgit v1.2.3