#Specify default parent for child node in an instantiated scene?

1 messages · Page 1 of 1 (latest)

lusty void
#

Is that possible to specify default parent for child of instantiated nodes?
I want to make child nodes of instantiated scenes go to the "contents" node when I have editable children disabled.

tardy bridge
#

If you have the Contents node selected when you instantiate a scene, then the new scene should be parented to the Contents node

strange quiver
#

I do not think you can do what you want. As far as I can tell Godot allows only one parent per node. To make a child node visible in the tree of the parent node would break that.
You may be able to find a solution by using @exports on the scene with the childnodes to make what you need available to the inspector in the parent. Sorry if it was hard to understand.

lusty void