- Home /
Unity 2D Renderer URP Makes my UI Camera have a background color
I am trying to add lighting to my 2D project, so I created a new Universal Render Pipeline that takes in a 2D renderer. I have 2 separate cameras, one for UI, and one for game elements. The moment I add a pipeline to my project, my UI Camera has a background color, although the clear flags are set to depth only.
What I've tried so far: Turning of Post-Processing, did not work. Camera stacking, but it is not available on the 2D Renderer, according to the docs. Making the camera background color transparent, but the Alpha channel does not seem to affect the color in any way. The unity version I m working on is 2019.3.4f1,I am trying to add lighting to my 2D project, so I created a new Universal Render Pipeline that takes in a 2D renderer. I have 2 separate cameras, one for UI, and one for game elements. The moment I add a pipeline to my project, my UI Camera has a background color, although the clear flags are set to depth only.
What I've tried so far: Turning of Post-Processing, did not work. Camera stacking, but it is not available on the 2D Renderer, according to the docs. Making the camera background color transparent, but the Alpha channel does not seem to affect the color in any way. The unity version I m working on is 2019.3.4f1
I found the solution, so just in case anyone is looking for this: Make sure the URP is updated on the package manager, after that, you can use the camera stacking , and use one camera as a base one, and the other one as an overlay.