Unable to access Blur

I’m trying to make a gradual blur when player presses a button. What is the best way to do this?

Currently, I’m adding the blur effect to the main camera at the beginning but disable it, and when the player presses the button I downsample the image and Lerp the blur radius.

How do I access the Blur component from my GUI script though? Since BlurEffect is deprecated, I try to use

	blur = GetComponent<Blur>();

But it tells me Blur isn’t a class and stuff, and BlurEffect, the deprecated class, is…

I had a similar problem. Blur could not be found for me until i included the correct reference;

using UnityStandardAssets.ImageEffects;

private var mBlur : UnityStandardAssets.ImageEffects.MotionBlur;
function Start()
{
mBlur = GameObject.Find(“Main Camera”).GetComponent(UnityStandardAssets.ImageEffects.MotionBlur);
mBlur.enabled = false;
}
This is what I tend to use.
:smiley: hope I helped!