No camera "Clear Flags"

I’m trying to have my first person weapon display above terrain by having it on a camera with Clear Flags set to “Depth Only” but apparently that’s been replaced with “Background Type” which only has Skybox, Solid Color, and Don’t Care as options. Neither of which do what I want.

I’m using 2019.2.12f1.

Also I’m using the LWRP template.

Just noticed when I remove the LWRP package, the camera component returns to how it used to be…
That’s a pretty huge trade-off. Either have access to shader graph, or be able to make first person games. Unless someone has a workaround to getting the weapon display thingy to work with LWRP.

Same issue. Using HDRP though, there is no option for Clear Flags on the camera

Right after I decided to stick with no render pipeline I found this tutorial which uses render textures.
Currently working on a game with no need for first person hands/weapons so can’t test if it works with the latest versions of Unity and HDRP, but give it a try.

For anyone coming to this thread with an old camera stacking (ie: One main camera and one child camera with only one layer culling mask and clear flag)
here is an easy two step conversion for this to work in URP :

  • Set Render type to Overlay in your child camera
  • In the Stack List of your main camera (at the bottom of the properties) click the + to add your child camera (It should be auto-suggested)

Done. Hope I saved you some hours ! Don’t know why it was so hard to find for me xD

48 Likes

Qhuhuit, thank you very much

You save me and my project. Thank you

1 Like

thanks a lot you saved me a lot of time.

Thank you so much!

Thank you!!! You are a great human being

you are one beautiful person, love you

Thank you, very helpful! :slight_smile:

fuck yeah! I spent hours trying to figure this out. Big thank you to you :face_blowing_a_kiss:

Yup this was it. Thank you!