# 2d-pixel-perfect

> Claude/Codex skill by [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.1k stars · Updated 2026-10-16

Sets up, diagnoses, and fixes pixel perfect 2D rendering with PixelPerfectCamera in URP or Built-in. Use when a retro-style or pixel art 2D game looks blurry, jittery, or misaligned. Not for HD 2D or high-resolution art.

## Install

```sh
git clone https://github.com/Unity-Technologies/skills /tmp/skills && ln -s /tmp/skills/skills/2d-pixel-perfect ~/.claude/skills/2d-pixel-perfect
```

## From README

⚠ There Are Two Completely Separate Implementations Pixel perfect rendering in Unity is not one system — it is two separate, incompatible implementations, one per render pipeline. Always detect the pipeline before writing or diagnosing any code. | | URP | Built-in | |---|---|---| | Component | UnityEngine.Rendering.Universal.PixelPerfectCamera | UnityEngine.U2D.PixelPerfectCamera | | Package | Built into URP — no extra | com.unity.2d.pixel-perfect v6.0.0+ | | API style | Enums (gridSnapping, cropFrame) | Booleans (pixelSnapping, upscaleRT, cropFrameX/Y) | Do not com.unity.2d.pixel-perfect in a URP project. → Always call DetectPipeline() first (references/pipeline-detection.cs), then branch your , diagnostics, and fixes based on the result.

## Links

- HTML page: https://omgskills.com/library/unity-technologies/skills/2d-pixel-perfect/
- GitHub: https://github.com/Unity-Technologies/skills
- Author: [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md)

## More from this repo

- [audio-setup-mixers](https://omgskills.com/library/unity-technologies/skills/audio-setup-mixers/index.md) — Routes Audio Sources into existing Audio Mixer Groups, classifying each source by what it plays.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
- [build-live-game](https://omgskills.com/library/unity-technologies/skills/build-live-game/index.md) — Builds and operates a live game's backend with Unity Gaming Services.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
- [generate-editor-search-query](https://omgskills.com/library/unity-technologies/skills/generate-editor-search-query/index.md) — Generates Unity Search queries and opens the Search window to find assets or scene objects.
   - [@unity-technologies](https://omgskills.com/library/unity-technologies/index.md) · 1.2k stars
