In my project I'm using 2 cameras:
- the Main Camera for the scene 3D elements;
- a secondary camera for UI elements, which I need(?*) since I want to render 3D objects inside the UI (I followed
Orthographic Camera
Inspector of one of the orthographic cameras:

UI Camera
Inspector of the UI camera (also orthographic):

Canvas Details
Inspector of the canvas I'm using for the UI:

I'm trying to make a sort of switch for different orthogonal projections, that makes use of different cameras to change the perspective. Therefore I made a dropdown UI element that seems to work fine: I used the
gameobject.SetActive(bool)method to switch camera, even though the
2. Orthographic Camera
After switching camera to orthogonal (UI disappeared):

And that's what I see in the Scene window:

Update
Setting the Canvas "Render Mode" to
Screen Space - Overlayseems to be solving the problem, but then I'm not able to see the 3D objects in the UI:
CodePudding user response:
Turns out it was easier than I thought. Big thanks to

2. After

