2D Light Flicker in Unity

Adding a cool and immersive visual effect to 2D lights in Unity

Daniele Quero, PhD
Geek Culture
Published in
4 min readJan 25, 2022

--

Objective: make a 2D light flick

I’m in love with 2D lights in Unity, and I ended up making them even cooler!

I wrote a script that allows a 2D light to flick like it was a candle or bad-working bulb or neon. Yes, it can resemble so many things because it’s highly customizable. And can be used with all the 2D light types.

The flicker has 3 possible ways of flicking: in intensity, in position, in colour

--

--

Daniele Quero, PhD
Geek Culture

A professional developer with passion for game developing and skill-growing. A former Nuclear Physics Researcher who changed his life to pursue his dreams