This may be quite basic, but I recently realised it's not as common practice as I thought to reference every node via `@onready` (always) and unique names (most of the time).
I find it really, really helpful, to have them at the top of the file as a point of truth.
#godot #GodotTips #gamedev
I find it really, really helpful, to have them at the top of the file as a point of truth.
#godot #GodotTips #gamedev
1 / 2
Comments
The auto-complete is quite good for node names, so I never really had any troubles with that, + unique names eliminates any kind of path troubles.
It's also very good practice to write a short if-check in the _ready function when using @export to save yourself from yourself.