unity-2d-renderinglisted
Install: claude install-skill tipoLi5890/unity-dev-skills
# 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.
| Symptom | Go to |
|---|---|
| A sprite draws behind one it should be in front of | §1 |
| Changing z or Order in Layer makes no difference | §1 — an earlier key already decided |
| Two sprites flicker or swap as the camera moves | §1 — a tie on all four keys |
| A character's hat, weapon or carried item sorts apart from its body | §2 |
| Something appears between the parts of a character | §2 |
| Seen from above, the runner walks behind a shelf or wall it stands in front of | §3 |
| Isometric or hex pieces draw inside out against the board | §3 |
| The sort axis