Can't install Depth of field script?

Hi there,

I downloaded post processing effects

I did find some stuff with depth of field in the name, but when I drag on the camera, it gives me some error, such as “This is an editor script” or that the script needs to derive from MonoBehavior. Sorry I’m a newb!

Can’t find any answers on Google. Anyone?

Thanks!
Dave

This is more a basic scripting question, but you’ll probably want to drag in one of the PostProcess…cs files onto the camera from the Runtime folder. I’d say either the …Behaviour or …Component.

Yes, I did try exactly that, but it will not work. I’m not sure why it keeps giving me that error. I even copied from another tutorial, step for step.

Just follow the documentation: