Editing post processing overrides not working

Hey, I got a script that changes the values of a volume profile, but there are no visible changes in the editor if I change the values myself nothing changes, even in editing mode.

if (Quality == OpticalQuality.VeryLow)
            {
                aberrations.intensity = new ClampedFloatParameter(0.9f, 0f, 1f, true);
                distortion.intensity = new ClampedFloatParameter(-0.40f, -1f, 1f, true);
                bloom.intensity = new ClampedFloatParameter(0.32f, 0f, 1f, true);
                bloom.dirtIntensity = new MinFloatParameter(9f, 0f, true);
            }

The volume is not the issue here, if the intensity of the chromatic aberrations is 0.5 when I click on play, it will remain 0.5.(On this screenshot I changed the intensity to 0 in the editor just to show that the script doesn’t change anything)

That’s not how you change those values. It’s not very intuitive, but instead of assigning a new object, you call .Override() on the existing object. For example, _postProcessingVignette.intensity.Override(0.5f).

1 Like