I have a scene with this structure:
root
child
The root node has a script with a setter var:
extends Node2D
export(Color) var colour = Color(1, 1, 1) setget _set_colour
func _set_colour(new_val):
colour = new_val
# Other relevant logic
...
get_node("child").set_modulate(new_val)
...
When I instance this scene in another it fails to load when running the project because _set_colour runs but get_node("child") returns null.
I've attached a minimal project so you can see what I'm trying to do and what's happening.