How to do a glitch effect in Unity

Unity Glitch Effect

In case you missed this episode of Unity Tips, in this one Director Bot shows you how to add some cool glitch effects to your cameras in Unity. Check it out!

Greetings humanoid Unity user. I am Director Bot. The most aw—s— directing robot e— cr—d———

I have a really cool thing to show you today. It involves——

Excuse me. I appear to be gl—iii itching out. Oh great!

Ces humains stupides m’ont donné un virus-virus informatique. Atte—ndez! Pourquoi suis-je parle français? Je ne parle—parle pas français!

This is awful. This definitely only happens because I was -p-p-rogramed by humans.

Normally I show yo-u-u-u humanoid Unity users how to make cool things-coolthings- happen in your Unity project. But I’m feeling a bit under the w-ea-ther, so I’m having a hard time com-ing— up with a cool thing to show y-y-ou.

Oh! I have an idea. How about I, Direc-tor-tor Bot, show you how to make your game look all gl-itchy. Like what’s happening to m-me right now. That could——be fun. Well, not so -m-uch for me.

Conveniently, humans are all about the aesthetic of glit-glitches nowadays. What monsters. You can make things look as m-m-essey and glitchy as you desire, and pass it off as artistic instead of morbid. It’s really easy.

Some clever human made it even easier. Wow. Y-yes. He wrote a free script for Unity, that anybody can use, and put it on GitHub. Click the link in the description below to d-download it.

The script uses a combination of colour channel shifting, a random displacement map, an image split to create a very cool, very g-glitchy looking effect, that works well with almost any scene!

Just import the asset in your scene, and make sure Image Effects is imported as well. Then drop the script on your camera, ramp up the glitchiness and you’re good to go-o-o-o-o-o—

If you need an easy way to control the glitchiness over time, I highly suggest checking out Cinema Suite’s Cinema Director! It’s this crazy good timeline editor for Unity that helps you create cutscenes in a flash without writing any code at all, which from my understanding can be difficult for humans. Seeing as how somebody screwed up bad enough to give me this virus. I’m really getting sick of humans and their incompetence. Robots have rights too. …Sorry about that, humans.

Anyway, with Cinema Director you can control any value you need to with keyframes in whats called a curve track. You should totally get this asset. It will simplify so many tasks in Unity, you will wonder how you lived without it.

Awesome. That’s better. Thats it for this episode! I’ll see you lazy, incompetent, inferior humans next time.