- Home /
The question is answered, right answer was accepted
How to enable/disable image effect through C# in Unity 5
I am not a programmer. Just trying to use a underwater script that I found and it works for fog but the enabling blur part throws errors. Hovering over gives this:
error CS0103: The name 'Blur' does not exist in the current context
It does did with any underwater script not just this. I have tried different names/components and it still says the same error. I know the get component has changed in 5 and am not sure how to edit the script for this to work.
Thank you for any help.
Answer by Beennn · Mar 14, 2015 at 05:15 AM
You need to reference the image effects namespace in Unity 5:
using UnityStandardAssets.ImageEffects;
Thanks will try it out when I get back to my computer.
That is it. Thank you very much Beenn. All I need now is caustics and I have a decent underwater effect.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Making Everything Public 0 Answers
Distribute terrain in zones 3 Answers
Build auto id for any object in inspector 1 Answer
Add Special Events for Skills 1 Answer