Update doc/classes/AnimationNodeStateMachinePlayback.xml Co-authored-by: Raul Santos <[email protected]> (cherry picked from commit cb7fdad3b4377bfa2bf866302e2e788c8a03ece8)
@@ -12,7 +12,7 @@
state_machine.travel("some_state")
[/gdscript]
[csharp]
- var stateMachine = GetNode<AnimationTree>("AnimationTree").Get("parameters/playback") as AnimationNodeStateMachinePlayback;
+ var stateMachine = GetNode<AnimationTree>("AnimationTree").Get("parameters/playback").As<AnimationNodeStateMachinePlayback>();
stateMachine.Travel("some_state");
[/csharp]
[/codeblocks]