Subviewport adds 3D object to my scene?

Godot Version

4.4

Question

I have a 3D game that all works fine. On top of that I want to have a menu with a 3D object, so I created a scene where the rootnode is a Subviewport and to that I added the 3D object I want to display (+ camera and lights etc), this I then organize via a SubViewportContainer.

The problem is that Godot keeps on adding the 3D scene from the Subviewport node to the actual 3D game, it just sticks around the origin position. I didn’t add it directly, I only added a node with the menu that contains the SubviewportContainer to the 3D scene.

Hope that makes sense :slight_smile:

You’ll need to enable Viewport.own_world_3d in the subviewport so it renders itself in its own world.

1 Like