summaryrefslogtreecommitdiff
path: root/doc/classes/AnimationNodeStateMachine.xml
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2019-04-16 15:47:47 +0200
committerGitHub <noreply@github.com>2019-04-16 15:47:47 +0200
commit7a0c086e45d91b7c3bfbba93c17ed2c205dd17e1 (patch)
tree40989a90f022b0935804f2bf5c198d4a1bb6b0eb /doc/classes/AnimationNodeStateMachine.xml
parent73713b6d3f9eaf9592b2a0b025ab0a8c8f2246c5 (diff)
parent584288a32c49afa02e69178381ef1e2abfb5371b (diff)
Merge pull request #27762 from rcorre/anim_docs
AnimationNode* docs
Diffstat (limited to 'doc/classes/AnimationNodeStateMachine.xml')
-rw-r--r--doc/classes/AnimationNodeStateMachine.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/classes/AnimationNodeStateMachine.xml b/doc/classes/AnimationNodeStateMachine.xml
index 6de544c9ac..348bd9eda1 100644
--- a/doc/classes/AnimationNodeStateMachine.xml
+++ b/doc/classes/AnimationNodeStateMachine.xml
@@ -3,6 +3,11 @@
<brief_description>
</brief_description>
<description>
+ Contains multiple root nodes as children in a graph. Each node is used as a state, and provides multiple functions to alternate between states. Retrieve the AnimationNodeStateMachinePlayback object from the [AnimationTree] node to control it programatically.
+ [codeblock]
+ var state_machine = anim_tree["parameters/StateMachine/playback"]
+ state_machine.travel("SomeState")
+ [codeblock]
</description>
<tutorials>
</tutorials>
@@ -170,7 +175,7 @@
<method name="set_graph_offset">
<return type="void">
</return>
- <argument index="0" name="name" type="Vector2">
+ <argument index="0" name="offset" type="Vector2">
</argument>
<description>
</description>