I’m trying to use the “Color Correction Curves” Image Effect (unity pro) to desaturate the screen at runtime, however I can’t seem to access the Saturation property through script. ColorCorrectionCurves does not even appear as an option. It does give me ColorCorrectionEffect, but there isn’t a property for saturation. I’d like to just blend the saturation between 0 and 1 based on a variable. Any ideas?
I made a script to set up two different curves visually in the editor and interpolate between them on real time:
Maybe you’ll find it of some help
I found a workaround. If there is a simpler way please let me know.
The saturation component of ColorCorrectionCurves can be animated.
I made an animation curve from 0 to 1 saturation.
then used Animator.Play(“animation clip”, -1, lerpingVariable); to change position along the curve every update. Looping must be turned off on the clip.