BindNode is an older version, but is not as convenient as using the @SceneTree macro.
In your class declaration, use the BindNode
property wrapper like this to reference the nodes that you created with the Godot Editor:
If you omit the withPath
parameter, depending on your system, the result might not resolve at runtime.