Disable Post-Processing effect by script

Hi everybody :slight_smile:

Since now, to disable Post-processing effect by script I find the Volume script in the scene and I disable it.

Except I noticed that if I manually disable it by unchecking the “Post-processing” option in the URP asset, I have 2 draw call less (Mobile optimization) . And similarly if I deactivate the “Post-processing” directly on the camera.

The problem is that I can’t find how to disable it by script…
I searched all camera parameters with GetComponent().
And no post-processing option to disable .

So I tried to find to disable it directly into UniversalRenderPipelineAsset… I Can’t fint anything related to Post-processing by script :confused: …
I can’t acess to the “rendering list” that take Renderer Data

If someone can explain me how to do it i’ll really appreciate ! :smile:

Have a good day !

This video should help

1 Like

Thanks for your help ! I find how to do that :smile:!!

have a good day !

1 Like