#how can I assign a scene to a property from a script ?

1 messages · Page 1 of 1 (latest)

craggy siren
#

guys, how can I assign a scene to a property from a script ?

when I do this I get an error that it's a string not a node3D:
what am i doing wrong ?

dim loom
#

You can create an export of type packedscene.

#

You then will have to instantiate it, to have it as the expected root type

craggy siren
#

how ?

#

oh your right

astral nova
#

or just put preload() around that string

craggy siren
#

that what i am going to do

dim loom
#

@export var scene: PackedScene