mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 07:32:20 +00:00
Update C# code example to fix an error
Update doc/classes/AnimationNodeStateMachinePlayback.xml Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
parent
621d68e412
commit
cb7fdad3b4
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user