diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-06-02 12:31:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 12:31:53 +0200 |
commit | 2a50f8c10762ef0176ce15e8c6f13e0d7c890f10 (patch) | |
tree | e4ca7713e9a4708200885afbbfe428cb4ac6f3ad | |
parent | e683986b24f5d864b225026c3b8fb93215743c96 (diff) | |
parent | cb7fdad3b4377bfa2bf866302e2e788c8a03ece8 (diff) | |
download | redot-engine-2a50f8c10762ef0176ce15e8c6f13e0d7c890f10.tar.gz |
Merge pull request #74595 from AurumKitsune/patch-1
Update C# code example to fix an error
-rw-r--r-- | doc/classes/AnimationNodeStateMachinePlayback.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/AnimationNodeStateMachinePlayback.xml b/doc/classes/AnimationNodeStateMachinePlayback.xml index 48d4f154d1..85dea7a4c2 100644 --- a/doc/classes/AnimationNodeStateMachinePlayback.xml +++ b/doc/classes/AnimationNodeStateMachinePlayback.xml @@ -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] |