Every time I try to use the onready var
to reference a node, it always loads everything before the onready var
. Making the variable null
. I don't want to have to keep referencing global nodes in the _ready()
function if I don't have to.
onready var section = $level
func _ready():
build_map()
func build_map():
print(section.get_name())
Attempt to call function 'get_name' in base 'null instance' on a null instance.