- Home /
cameras rendering problem
I have a canvas in my game scene and 2 cameras but it seems that the canvas still can be rendered even there is no cameras in the scene What did I do wrong? any suggestion ? here is a screenshot
Answer by Moubien · Jun 01, 2017 at 10:57 AM
I solved by adding a temporary gamobject on top of the previous panel which getting the draggable object transfered to it
Answer by DFT-Games · May 29, 2017 at 11:29 PM
Hi @Moubien ,
What you see is correct: when the Canvas does not operate in World Space it does not require a camera in the scene to render because in Screen Space it's rendered as an overlay, even in Camera mode if the camera is not set. if you want to make the UI disappear you have to either move it out of the screen space using an animation or you simply disable it.
The thing is that I don't want to move it I'm having a problem when I drag an item from the bottom one to the upper the object gets hidden under the second panel I thought I could put 2 cameras each render different gameobjects but I couldn't do it. and if I change the canvas rendering it causes a different issue if u could have a suggestion please do thx
Answer by Marceta · May 31, 2017 at 12:35 PM
Check my answer on unity forum: https://forum.unity3d.com/threads/no-camera-rendering-message-with-5-4-0p1.425533/#post-2967704
Answer by Mulik · May 31, 2017 at 01:27 PM
When you work with canvas with render mode "Screen Space Overlay" then using camera to render it is useless. In canvas rendering is done from top to bottom. i.e. elements at upper level in hierarchy are rendered first(they appears to back) and lower level are rendered next (appear in front of them).
Your answer
Follow this Question
Related Questions
How can I make a gameobject partially invisible by distance? 2 Answers
GameObject can disappear 1 second after play, but still appear in scene window 1 Answer
Have Camera Render First Person Arms But Not Body. 2 Answers
Check if object is being rendered 5 Answers
Why is OnRenderObject() called after OnPostRender()?? 1 Answer