r/Unity2D • u/Beautiful_Nerve_3576 • Oct 12 '25
In Unity 2D, how can I create a flashing police car light effect (red and blue) using only 2D tools like sprites or lights, without using any 3D models?
2
Upvotes
3
u/Holiday-Item-5151 Oct 12 '25
I would think of using two looping animations, a red background gradually decreasing in visibility, gradually bringing in the blue color and so on.
1
u/fernandodasilva Oct 12 '25
Using a colour lerp?
1
u/KleinBlade Oct 12 '25
If you know a bit about shadergraphs in Unity, you could create a material that lerps between two colors (red and blue), and then apply the material to the sprite. Bonus points, if you switch to URP and include some lights, you could use HDR colors in the shadergraph to get a nice bloom around the police light 🚨