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…