Change same Post Process Settings with different buttons

Hello! I’m trying to change single post process setting by using multiple buttons in runtime.

I have 2 buttons named “A” and “B”. And when I click on the button “A”, it is set to change the exposure to 10 and for button “B”, it will get the post process setting and then save it.

But the problem is when I click on button “B” after clicking on “A”, the exposure is not staying the same. It is set to default value.

In the screenshot, the code at the top is for button A and the below one for B.

I need to know how I can retain the previously changed value in post process settings if I click on another button that just takes the current

Any help will be appreciated.


value and sets it to post process settings as it is.