Question by
MojtabaM · Aug 12, 2012 at 08:29 PM ·
image effects
how to enable/disable a postprocess at certain time ?
Hi everybody i wanna disable/enable an image effect like blur at certain time . how it can be done ? Thanks.
Comment
Best Answer
Answer by Meltdown · Aug 12, 2012 at 08:31 PM
Well if your image effect is a component attached to your camera.. do something like this..
Camera.mainCamera.GetComponent<Blur>().enabled = false;
Where 'Blur' is the name of your image effect attached to the camera.
Answer by elmomalio · Jun 23, 2017 at 04:15 AM
i get this error: The type or namespace name `Blur' could not be found. Are you missing an assembly reference?