Unity making me feel stupid today (trying to use Image Effects)

I’m trying to use Image Effects for the first time. Per the docs and this blog post, it sounds easy: import 'em and attach to a camera. No.

I used Assets > Import Package > Effects, and selected the Editor and Standard Assets folders (skipping a Plugins folder which contains stuff from Vectrosity, which I don’t want in this project). Click Import.

Now I have 42 compiler errors like this one:

Similar errors were found for in BloomAndFlaresEditor, BloomEditor, CameraMotionBlurEditor, and basically all the other editor scripts. I searched the googles, but apparently nobody else has run into this. And the documentation is no help either.

These scripts do appear to be part of the image effects, though:

using System;
using UnityEditor;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
    [CustomEditor (typeof(BloomAndFlares))]
    class BloomAndFlaresEditor : Editor
    {
...

And the blog post says that I should have a bunch of new scripts in Standard Assets/Effects/Image Effects. But nope, there is no such folder. I’ve just double-checked the import, and it really isn’t there:

Other effects, apparently, but no Image Effects.

What am I doing wrong here? How do I get these mythical image effects in my project?

Thanks,

  • Joe

Really? Nobody has any idea?

I guess I’m the first to ever run into this issue… lucky me! :stuck_out_tongue:

No ideas, but have you tried importing the new post effect stack instead to see if it works?

No… I didn’t realize that there was a new one, or some other way to import it. Is this something I download from somewhere?

2 Likes

The image effects all rely on many other scripts/shaders/ etc. that need to be imported at the same time. Anytime you delete the Image Effects folder out of the Standard Assets you’ll get many errors on scripts from the plug-ins folder that rely on these.

As @Gametyme states above, go ahead and skip the Image Effects and use the new post processing stack. They are superior in every way and more performant. I have found even with VR the new stack effects work quite well.

Right, but I didn’t do that. I imported what was available (and took a screen shot of it). The scripts that are supposed to be there, simply aren’t there to import.

Cool, trying that now. Those do import without errors. Thanks for the advice!