浏览代码

Fix incorrect state machine parameter in example (#3926)

Co-authored-by: Nicholas Loomans <[email protected]>
Nicholas Loomans 5 年之前
父节点
当前提交
85f96530cf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tutorials/animation/animation_tree.rst

+ 2 - 2
tutorials/animation/animation_tree.rst

@@ -245,11 +245,11 @@ object from the ``AnimationTree`` node (it is exported as a property).
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript
 
 
-    var state_machine = anim_tree["parameters/StateMachine/playback"]
+    var state_machine = anim_tree["parameters/playback"]
 
 
  .. code-tab:: csharp
  .. code-tab:: csharp
 
 
-    AnimationNodeStateMachinePlayback stateMachine = (AnimationNodeStateMachinePlayback)animTree.Get("parameters/StateMachine/playback");
+    AnimationNodeStateMachinePlayback stateMachine = (AnimationNodeStateMachinePlayback)animTree.Get("parameters/playback");
 
 
 Once retrieved, it can be used by calling one of the many functions it offers:
 Once retrieved, it can be used by calling one of the many functions it offers: