Hi, this is something I didnt understand yet on godot , supposing we have a scene with root="Node3D" with an single child "bugNode3D", with the following scripts :
root node "Node3D"
extends Node3D
var test:Node3D
func _ready():
test=Node3D.new()
add_child(test)
The chield "bugNode3D" script :
extends Node3D
@onready var parentNode = $".."
func _ready():
var n: Node3D = parentNode.test
prints(n) # prints null, dosent matter if I change priority, nothing seems to works
It seems root will allways loads last, dosent matter if priority is changed, dosent matter if I use @ready or anything, how can I prevent null from happen on this case ?