Hello there ! Firstly I’m french, then sorry for my mediocre english.
So I need your help for this problem :
I’m using an image effect reference, the “Contrast Stretch Effect”, as you see on this link http://docs.unity3d.com/Manual/script-ContrastStretch.html
I would like to change in game, with help of my script, the property “limitMaximum”.
If I try to do this, it’s to have a linear contrast modification which will be darken.
In fact this property will be dependent of the volume of an object to my scene, cause why I want to call this property / float.
To show you my script :
private var contrast : float; //float which is using on the component ContrastStrech.limitMaximum
private var newValue : float; //The volume of audioSource of an other object
function Start () {
contrast = cameraEffect.GetComponent(“ContrastStretch”).limitMaximum();
}
function Update () {
contrast = newValue;
}
But the console say me “limitMaximum” is not a member of ‘UnityEngine.Component’.
How can I resolve this please ? I don’t find the solution ![]()
Thanks for your help !