- Home /
Orthographic Camera Problems.
I am using Spritemanager 2 to manage my 2d GUI elements. I had my UI Camera set to perspective mode and everything was working great. I put changed it to Orthographic mode, and it works perfect again in the editor, but when I build the game, this camera doesn't show up at all. It doesn't display anything, even if I set the culling mask to everything, but again works perfect in the editor. Any ideas anyone?
Answer by Aron · Oct 25, 2010 at 05:32 AM
Solved, as it turns out, you MUST have at least depth selected on clear flags when stacking an orthographic camera on top of a perspective one. I don't know why, or if this is a bug, but that fixed it for me.
Stacking any camera on top of any other camera, you need the clear flags to be depth only if you expect the other camera to show through underneath.
Your answer
Follow this Question
Related Questions
What is the meaning of 1:1 in unity? 1 Answer
Resizing orthographic camera to fit 2d sprite on screen 1 Answer
How to resize a camera's orthoSize for an object to fit inside its rect viewport? 1 Answer
Avoid/Minimize Sprites extrapolation in 2D while camera changes size 0 Answers
Why is part of object outside camera frustum visible? 1 Answer