Perhaps a strange question, but I can not understand how the camera works in the editor itself and how to configure it.
I have two canvases, each with a camera. One canvas and camera with priority 0 for UI elements. Second canvas and camera with priority 1 and DEPTH_ONLY flag for 3D elements. 3d elements should be rendered in front of the UI. I run it and everything works as it should.
But in the editor window, no matter what I do, I can’t get the 3d elements to show up in front of the UI. Even switching to 3d mode, the UI is always displayed in front of them. What am I doing wrong and where is the error?
In the editor window in 3d mode: