When I add my Named node to a scene, I want it to bring its children with it. How can I do this?

Godot Version

Godot 4.5

Question

When I add my Named node to a scene, I want it to bring its children with it. How can I do this?

This is attempt at executing this. :face_with_spiral_eyes:

This is the scene I am adding the node to as a test.

This is the scene I am trying to add. (Instancing normally doesn’t work as the other scene is by itself and isn’t instanced. I intend to spawn the camera’s for each player as this scene and would prefer it just went and got each scene itself.)

I am attempting to preload each element of the scene and then instantiate it in the node at the start of everything so the camera in my test scene is there when I finish loading and I can see and move but that seems to fail to do anything at all. . . And I don’t know what could be causing it as there seems to be no errors.

(I realize that this is similar to a question I asked four days ago, and I apologize for leaving it that way. things happened and I ended up unable to work on this for four days.)

Seems like you used the Add child node button and selected your script’s class name, but you should’ve used the Instantiate child scene button to add the entire scene. It’s just to the right of the add button.

Your code is failing because PlayerGUI and PlayerCamera are PackedScenes, they are only blueprints that can be used to instantiate a real scene/node heirarchy, which you do instantiate as SpawnGUI and SpawnCamera but you must use those instances rather than the packed scenes.

Ok, I think I get what your saying after a long brain fart.

JUST INSTANCE THINGS PROPERLY. the GDscript I was trying use is for NPC’s and other game objects not the interface. Thank you. :melting_face: (don’t do, just trust me it leads to you feeling really stupid.) also read the docs