UI with layer always displaying
I made 2 camera's. One camera ignores the layer 'notVisible' and the other one not. Then I created a rawimage with the layer selected as 'notVisible'. But still both camera's are displaying the rawimage in game. What do I need to do?
Answer by Subhanshu · Jul 14, 2017 at 05:16 PM
Hi @martn00 , here you need to tweak your Canvas a little bit.
First of all, set both camera's culling mask to 'Everything'.
Now, select Canvas from the hierarchy and locate its 'Canvas' component in the Inspector. (See Img)
Then change its 'Render Mode from "Screen Space - Overlay" to "Screen Space - Camera" (See Img)
Finally, Drag your desired camera through which you want to display the Raw Image.
Now run the scene and try to disable the camera other than that you have dragged onto the Component. (See Img! Try to disable Camera2 from the hierarchy while running the scene or as it is).
I hope it will solve your issue upto some extents
I m so glad to help you. All the Best for the further development process. (Y)
Your answer
Follow this Question
Related Questions
AR-like Camera Effect, How to Achieve Custom Shaped Culling Masks for Camera? 1 Answer
Camera Culling Mask Change 3 Answers
How to match position with Mini Map UI 0 Answers
Major Issues with Camera Switching 1 Answer
In which layer is drawn a Canvas with render mode - Screen Space Overlay - ? 0 Answers