Orthographic Camera for objects but perspective for GUI?
I was wondering if I can make perspective camera with gui layer mask lay on the orthographic camera that shows only 2d objects. [I want to make rotated player's health indicator so the part of it is behind the player] Is it possible? I'm a newbie if it comes to the cameras. Thanks!
Answer by hexagonius · Jan 16, 2016 at 05:05 PM
It is possible. Create 2 cameras, one perspective, one orthographic. Set them up so at least one layer is the gui layer and only rendered by whichever camera you chose. set their Depth, gui smaller than the other, so they get rendered one after another. That should be it.
orthographic cameras hava got this size property, how to change the size of the perspective camera so it's the same as the first one's? ( changing field of view makes it too large)
and the top camera is just covering the one with the smaller depth...?
okay i got it but now the thing is that i set the gui camera depth higher because i have a background attached to the ortho camera, and changing layer order in the canvas doesnt help
Your answer
Follow this Question
Related Questions
Camera perspective or orthographic 0 Answers
Preventing world interactions when using an UI element with an Orthographic 3D camera 0 Answers
Can you still hit the collider of an object that's been culled via a camera's culling mask? 1 Answer
Can't Remove Character Head From FPS Cam - Model is a Single Mesh 1 Answer
Render 2 cameras with same depth. Not split screen. 0 Answers