- Home /
How can you hide Canvas objects using Camera Culling Mask?
I have a second camera that takes screenshots when a user finishes a level. When this happens, I switch the camera in the canvas Render Camera (worldCamera). This is all fine and dandy, but putting UI images on different layers, and removing those from my camera culling mask doesn't work.
The canvas is in Screen Space - Camera mode. I believe the issue is Unity only considers the parent Canvas layer, and not the hierarchy object layers. So it only either renders the whole UI layer, or nothing.
Any idea on how to bypass this behaviour? Or maybe I am missing something?
Your answer
Follow this Question
Related Questions
Canvas layer overrides child layer in light culling mask - Expected behavior? 0 Answers
I can't hide a RawImagen in a camera view 1 Answer
Why canvas set to Screen Space - Overlay doesn't cover entire screen 0 Answers
Is there a way to make a Texture2D screenshot that ignores the canvas? 3 Answers
UI elements within canvas are invisible 0 Answers