Add document about animation read-only props and state length

This commit is contained in:
Silc Renew
2023-02-13 14:16:40 +09:00
parent 27b2260460
commit 045c8845c7
3 changed files with 16 additions and 4 deletions
+8
View File
@@ -17,6 +17,11 @@
animation_tree.set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_ABORT)
# Alternative syntax (same result as above).
animation_tree["parameters/OneShot/request"] = AnimationNodeOneShot.ONE_SHOT_REQUEST_ABORT
# Get current state (read-only).
animation_tree.get("parameters/OneShot/active"))
# Alternative syntax (same result as above).
animation_tree["parameters/OneShot/active"]
[/gdscript]
[csharp]
// Play child animation connected to "shot" port.
@@ -24,6 +29,9 @@
// Abort child animation connected to "shot" port.
animationTree.Set("parameters/OneShot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_ABORT);
// Get current state (read-only).
animationTree.Get("parameters/OneShot/active");
[/csharp]
[/codeblocks]
</description>