Sfoglia il codice sorgente

Fix incorrect state machine parameter in example (#3926)

Co-authored-by: Nicholas Loomans <[email protected]>
Nicholas Loomans 5 anni fa
parent
commit
85f96530cf
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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::
  .. code-tab:: gdscript GDScript
 
-    var state_machine = anim_tree["parameters/StateMachine/playback"]
+    var state_machine = anim_tree["parameters/playback"]
 
  .. 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: