How can I access/change the saturation of my scene with C#? (had it working, but it stopped after update)
Hi,
I was using this line of code to access the saturation in my scene (having the ColourCorrectionCurves script attached to my camera, and "using UnityStandardAssets.ImageEffects;" ):
var sat = Camera.main.gameObject.GetComponent<ColorCorrectionCurves>().saturation;
It worked no problem, but since updating to the current version of Unity it no longer does anything. No error messages appear either. I've also tried using:
UnityStandardAssets.ImageEffects.ColorCorrectionCurves. ...
but the intellisense stops working there, and it won't find the Saturation property.
Does anyone know how to access it now?
Thanks in advance
Answer by phil_me_up · Mar 01, 2016 at 01:45 PM
Do you still have the standard assets installed? You may need to re download them for the new update depending on what version you updated from / to.
Your answer
![](https://koobas.hobune.stream/wayback/20220612070152im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is It Possible To Load 2 images And Compare Them using Edge Detection 0 Answers
clamping camera's rotation 0 Answers
Updating a List from a Custom Inspector 0 Answers
How to make a 2D array of buttons? 2 Answers