Need help understanding the UI system in a 3D game

Godot Version

4.3

Question

I have this players with a Camera3D inside a SubViewportContainer and some Control UIs:


It works fine if I place those Control nodes inside of the player node, but if I place these UI Control nodes outside of the player, then I can’t interact with this Control node.
For example:

There are those “Testing” buttons, if the Node is inside of the player, the hover and click works but if I place this Control node outside of the player then I can only see but hovering and clicking have no effect

Why not just use a canvas layer node? You can display any UI elements on top of the 3d view without having to mess with viewports.

1 Like

Hey that was exactly what i was looking for, thank you so much :smile:

1 Like