← ClaudeAtlas

unity-2d-pixel-perfectlisted

Blurry, shimmering or seamed pixel art in Unity: Pixel Perfect Camera, import settings, snapping.
tipoLi5890/unity-dev-skills · ★ 2 · AI & Automation · score 75
Install: claude install-skill tipoLi5890/unity-dev-skills
# unity-2d-pixel-perfect — two components with the same name, and only one of them is yours > **Pixel perfect is not one Unity feature, it is two incompatible implementations of one name.** > URP ships `UnityEngine.Rendering.Universal.PixelPerfectCamera`, driven by enums. The > standalone `com.unity.2d.pixel-perfect` package ships `UnityEngine.U2D.PixelPerfectCamera`, > driven by booleans. Adding the wrong one costs you nothing at compile time and everything at > runtime, so **the pipeline in force decides the component, and you resolve it first.** ## Start here — symptom → where to look | Symptom | Go to | |---|---| | "Which `PixelPerfectCamera` do I add"; the pipeline in force decides which same-named component | §1 | | The component is on the camera and nothing snaps; it compiles but does nothing after a render-pipeline change | §1, §9 — wrong implementation for the pipeline | | `PixelPerfectCamera` will not resolve in an Editor script | §1 — assembly names | | Sprites are soft or washed out at every zoom | §2 | | Sprites sharp at one zoom, soft at another; choosing a reference resolution | §3 — non-integer scale factor | | Hairline gaps between tilemap tiles | §5 | | Pixels crawl or shimmer while the camera pans | §4 `gridSnapping`, then §8 | | The camera jitters and framing pops between shots; Cinemachine and the pixel camera fight over orthographic size | §6 — Cinemachine | | UI text went soft; the scene did not | §7 | | Post-processing blurs the entire frame | §7 |