Self becomes null when exporting a packed scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ferobregon

I set up a very simpel scene, with only a Node3D

extends Node3D
@export var packed_scene : PackedScene
func _ready():
print(self)

if the packed_scene variable is not set, works perfectly. If i set a packed scene, the inspector shows null on the ‘self’ item.