Posting here as I’ve had not response on the report and it’s still and issue in the latest version.
Camera render order wrong when using Viewport Rect
-
What happened
Changing the Viewport Rect of a camera causes the camera to render in the wrong order.
-
How we can reproduce it using the example you attached
Create 3 cameras, with depth of 1,2,3 set to orthographic. Change the Viewport Rect of the camera at depth 2, check the Frame Debugger to confirm the incorrect rendering order.
All settings on cameras are the same other than the culling mask and depth.
Tested in 5.6b10 and 5.6f3
1 Like
The bug report was given a low rating(3) and so is still waiting on QA.
https://blogs.unity3d.com/2013/10/28/bug-reports-incidents-and-some-bashing/
Try including an example project and giving a detailed explanation.
I’m always stuck when giving more info on bugs like that. To reproduce all you need is to add 3 cameras to a scene and change 1 value, I’m not sure I could give any more detail if I wanted to.
Did you include a project with a scene with 3 cameras and a script that changes the value to demonstrate the bug?
E.G.
A good bug report will say something like.
- Open scene bug in example project.
- Press play, notice how x happens when y should happen.
https://unity3d.com/unity/qa/bug-reporting
No, I didn’t think it was needed for such a small thing.
This looks like a duplicate of Unity Issue Tracker - Camera Depth is ignored when setting both cameras Viewport other than (0;0;1;1)
That’s marked as fixed, however it still exists. The forum links on that issue suggest your fixing it in the next patch anyway. So my post can be ignored if that’s the case.