Can't find Clear Flags options on my camera?

Hello!

I want to use one camera for my 2D-world, and one Camera to render all UI. The reason I want to do this is because I’m using both UI-elements in the UI, and regular gameobjects. I’ve read online that the way to do this is to make another camera and set its “Clear Flags” option to Don’t Clear.

It seems pretty straightforward, but no matter what I do I cannot find the Clear Flags option on my cameras. Does anyone know why that is? These are what my options look like:

Does anyone know why I can’t find the Clear Flags options? And if you do, do you know how I can achieve the effect I’m looking for without it?

Thank you so much in advance!

I just found the answer! The reason I can’t use Clear Flags is because I’m using the LWRP. I didn’t know this, but it’s currently not supporting camera-stacking as I understand it. But it seems they’re working on it(?).

It’s detailed in this document:

I’ll have to find another way to fix my UI-rendering, or I’ll wait until they add camera-stacking support.

1 Like

There’s a way to do that .

First create the second camera (Canvas Camera) and change render type to overlay . then clear clear depth tick
7744584--973764--upload_2021-12-17_21-58-12.png

Now go to the first camera and under stack you can now add the new camera you created
7744584--973773--upload_2021-12-17_22-0-10.png

now the second camera will work as an overlay to the main camera . Hope this is what the OP is asking .

2 Likes