GetNode()
GDScript has a convenient shortcut for grabbing a child node reference within a script. For example, grabbing an AnimatedSprite
and setting it to play a certain animation can be done with $AnimatedSprite.animation = "animation name"
. Getting a node in C# and F# is a bit more verbose.
In F#:
let sprite =
this.GetNode<AnimatedSprite>(new NodePath("AnimatedSprite"))