( unity PRO ) Underwater blur effect

I’ve looked all around unity community and answers , but all of them are just fog ( for unity indie ) , but when my FPS camera touches the trigger of my water plane i want thhe blur effect to be enabled. JS script please :slight_smile:

“JS script please”… UA isn’t the place to simply ask for scripts, but I’ll refer you to the Unity Script Reference for GetComponent, so you can learn how to use it. I’ve also left a simple example for you, hope this helps. :slight_smile:

#pragma strict

//Example.js

//In this example, you'll toggle the blur script using the B //key.

function Update()
{
    if(Input.GetKeyDown(KeyCode.B))
        GetComponent(BlurEffect).enabled = !GetComponent(BlurEffect).enabled;
}

Also have a look at OnTriggerEnter