Activate image effect.

Hi,i have made sprint script,i want to add some image effect while im running,like vignette effect. Well i want image effect activates when i start to hold “shift” and when im stop holding “shift” image effect deactivates.Thanks. :slight_smile:

something like this, didn’t test this and i don’t know if keycode for the shift button is the same as “shift” nor if vignette should start with a capital (think so)

while(Input.GetKey("shift"))
{
	Camera.main.GetComponent("Vignette").enabled=true;
}
else
{
	Camera.main.GetComponent("Vignette").enabled=false;
}

Hi

Full screen post-processing effects are only available on the Pro version. That includes Vignetting.