How do I disable post-processing at runtime?
On the advice of another thread, I used the name space UnityEngine.Rendering.Universal and called the following on my scene's main camera:
mainCamera.gameObject.GetComponent<UniversalAdditionalCameraData>().renderPostProcessing = false;
This successfully unchecks the Post-processing box for the camera in the inspector--however, this appears to be a purely cosmetic effect, as it does absolutely nothing as far as actually disabling post-processing effects in the scene. Surely there is some way to accomplish this?
Your answer
![](https://koobas.hobune.stream/wayback/20220613055346im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why object's doesn't stop on collision enter? 0 Answers
Framing multiple objects from a list along y axis only? 0 Answers
I'm trying to transfer the display from my phone camera to my computer (Realtime!) 0 Answers
Motion Blur is always affecting camera even when its not moving 1 Answer
Why the Global Fog will cause the game view inverted? 0 Answers