- Home /
Camera shaders and effects don't apply to UI?
I have a camera with some shaders and effects which should show over everything. The effects do actually work as they should but I need them to even show over or affect the UI. For example, I have a "distortion" effect (makes blue and yellow lines around objects' edges) and it works on everything except for the UI. If stuff were in layers, the UI is the layer on top, over the camera. Can I make it so that the UI is under the camera?
Answer by Casiell · Dec 04, 2019 at 02:30 PM
You would have to set your canvas as Screen Space - Camera, or World Space. Note that this may affect your canvas in other ways.
When I changed it, the entire canvas disappeared from the camera view?
Your camera needs to be able to render your UI. That is, the UI's layer must be set in camera's culling mask, and the UI geometry must be within camera's frustum. You can ensure that by changing the camera frustum or the canvas plane distance from camera (a value on canvas I think)
Arigatōgozaimashita. it worked :DD Sank you Sensei, sir!