unity-2d-rendering

Installation
SKILL.md

unity-2d-rendering — draw order is four keys in a fixed priority, and z is the last of them

Moving a sprite in z is almost never the fix. Two overlapping renderers are compared on sorting layer, then Order in Layer, then render queue, then distance along the sort axis. The first key that differs decides and the rest are never read. World z is only what "distance" happens to mean under the default sort mode — and under a custom axis it means nothing.

The first Light2D you add turns everything it does not light black. With no light in the scene, lit sprites draw at full colour; with one, every pixel outside its shape and every sorting layer it does not target receives darkness. Both halves of this skill are the same question: which asset is the renderer actually reading?

Start here — symptom → where to look

First match wins. Stop at the first cause the audit or the frame confirms.

Installs
9
GitHub Stars
2
First Seen
Oct 17, 2026