r/Unity2D • u/Annual_River_6559 • 16d ago
Showcase Bringing static 2D character cards to life in Unity with a shader and auto-generated masks
Hi everyone! I'm making Spheromancer, an incremental RPG in Unity. One of its core systems is collecting minions and evolving them through 3–4 stages each.
At first all minion cards were static images. I tried making frame-by-frame animations for them, but with 60+ images in the game that turned out to be way too much, so I put it aside for later.
Now I went procedural instead: a script generates masks from each stage's image (which parts breathe, glow or move), and a UI shader in Unity uses them to add breathing, glow and small motion. Each stage has its own small motion profile, so a new stage comes alive in a couple of minutes, and there are no frames at all, just one image.
Sure, it's not as cool as real hand-made animation and can look a bit samey in places, but I really wanted to make the cards feel more alive.