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.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user