# 2d-pixel-perfect

Checks Unity pixel-art rendering when sprites look blurred, shake during motion, or fall off the pixel grid.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3400 installs · ★ 1149
- Author: Unity-Technologies
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/2d-pixel-perfect/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/2d-pixel-perfect

## What it does

This skill helps diagnose and configure Unity pixel-art rendering through `PixelPerfectCamera`. It calls `DetectPipeline()` before changing anything, then checks the camera, sprite imports, grid snapping, and quality settings.

URP uses `UnityEngine.Rendering.Universal.PixelPerfectCamera`; Built-in uses `UnityEngine.U2D.PixelPerfectCamera`. Built-in requires `com.unity.2d.pixel-perfect` at `v6.0.0+`, while URP must not add that package. Checking the pipeline first is mandatory because those components cannot be swapped.

It covers blurry textures, Tilemap seams, and migration issues. Reference material includes `references/pipeline-detection.cs`, `references/sprite-settings.cs`, and camera setup files. It is not for HDRP or scenes containing only UI; use Canvas Scaler for the latter.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill 2d-pixel-perfect -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/2d-pixel-perfect/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/2d-pixel-perfect/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill 2d-pixel-perfect -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/2d-pixel-perfect/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill 2d-pixel-perfect -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/2d-pixel-perfect/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Unity-Technologies/skills 2d-pixel-perfect
```

2. **Manually: put the files in place**
- File: `.github/skills/2d-pixel-perfect/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill 2d-pixel-perfect -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Unity-Technologies/skills --path skills/2d-pixel-perfect
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/2d-pixel-perfect/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill 2d-pixel-perfect -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/2d-pixel-perfect/SKILL.md

## When to use it
- remove blur from pixel-art sprites
- trace camera jitter and off-grid objects
- configure `PixelPerfectCamera` for URP or Built-in
- fix gaps between Tilemap tiles
- update an old URP camera namespace

## Example prompts
- Inspect this Unity pixel-art scene and run `DetectPipeline()` before making changes
- Diagnose blurred sprites in the current scene, then fix only the failed checks
- Set up `PixelPerfectCamera` for this Tilemap after identifying the render pipeline

## Similar
- [unity-tilemap-2d](https://affpapa.org/en/nevibecode/skills/unity-tilemap-2d.md) — skill · 5500 installs
- [unity-developer](https://affpapa.org/en/nevibecode/skills/unity-developer.md) — skill · 3000 installs
- [scenario-sprite-animation](https://affpapa.org/en/nevibecode/skills/scenario-sprite-animation.md) — skill · 530 installs
- [game-assets](https://affpapa.org/en/nevibecode/skills/game-assets.md) — skill · 1600 installs
- [pixel-art-sprites](https://affpapa.org/en/nevibecode/skills/pixel-art-sprites.md) — skill · 2700 installs
- [pixel-art](https://affpapa.org/en/nevibecode/skills/omer-metin-pixel-art.md) — skill · 520 installs

From the same set: [unity-technologies/skills](https://affpapa.org/en/nevibecode/by/unity-technologies/skills.md) — 31 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
