URP is being used.
Camera stacking is being applied.
Is there a way to script the clear depth of an overlay camera?
Current Unity version is 2021.1.28f1.
From researching it a little, I found this thread. Short answer, no, the value is read-only.
I’ve been working on a multiple camera setup using the universal render pipeline using overlay camera to simulate camera stacking. For the overlay camera, I want to be able to toggle the ClearDepth property of the camera programmatically but I’ve noticed its read only. Is there a way to toggle this property that I’m not aware or is there a good reason why the ClearDepth property cannot be modified.
[6765910--781645--upload_2021-1-26_15-8-11.png] I want to be able to
The solution provided might be able to help you though.