Edit new Postprocessing volume in real time

Hello
I am working on a simple 2D game and I have a postprocessing volume applied, everything works fine.
I wanted to be able to change some of my global volume properties
I looked at the UnityEngine.Rendering namespace and found the Volume and the VolumeProfile classes, however, there is no mention about that in documentation so I couldn’t figure out a way to edit my profile properties such as bloom intensity in real-time
Hope you guys help me and thnx in advance :slight_smile:

Hi @redred200207 ,

See this thread/my earlier post, This is HDRP example:

There’s example how to access depth of field post process volume. Same should apply to other volumes too (like bloom.)

But it might be best to tell which render pipeline & post processing you’re using. Now that I thought, you might be using Post Processing Stack v2? :slight_smile:

I guess this is the one I am using as I use URP for my 2D game and post-processing comes by default.
I did a quick test using the link you provided me and it worked, thank you :slight_smile: