godot function manual code example
Example: gdScript onready
#this variable will bw=e created when the scene tree is ready
# used for reference of node from tree
onready var timer := $Timer
#this variable will bw=e created when the scene tree is ready
# used for reference of node from tree
onready var timer := $Timer