Skip to content

Commit c2b9aec

Browse files
authored
Update animation_tree.rst to reflect One Shot's C# enums not being li… (#7391)
1 parent 8bedbe2 commit c2b9aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/animation/animation_tree.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ After setting the request and changing the animation playback, the one-shot node
116116
.. code-tab:: csharp
117117

118118
// Play child animation connected to "shot" port.
119-
animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE);
119+
animationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.Fire);
120120

121121
// Abort child animation connected to "shot" port.
122-
animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_ABORT);
122+
animationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.Abort);
123123

124124
// Get current state (read-only).
125125
animationTree.Get("parameters/OneShot/active");

0 commit comments

Comments
 (0)