configure-2d-pixel-perfect
БесплатноБез исполняемых скриптовНе проверен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…
от Unity-Technologies★ 1 342 звезды на GitHubОб этом скилле
Set up, diagnose, and fix pixel perfect 2D rendering in Unity projects.
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills for each step. - Before making changes, establish a baseline of the current behavior so you can tell whether a later result is actually caused by your change.
- Create a restore point you can roll back to if your changes fail.
- Do only what's asked. Don't change unrelated assets or files. Avoid long explanations. This is because unrequested changes are hard for the user to review and can break other parts of their project.
- Never leave verification code in the user's script. Never build logging or detection they didn't ask for. This is because it clutters their project with code they didn't request.
Full topic map
Before you go forward with a workflow or diagnosis:
- Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
- Name the file(s) you read in your response.
This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.
Read the Unity version from ProjectSettings/ProjectVersion.txt and package versions from Packages/packages-lock.json.
Unity Manual pages
If the Editor install folder has a Data/Documentation folder (eg ...Unity/Hub/Editor/6000.6.0b2/Editor/Data/Documentation), read the html files from the en/Manual folder (<editor-install>/Editor/Data/Documentation/en/Manual/).
Otherwise the docs pages are online at https://docs.unity.com/en-us/engine/<VERSION>/manual/. Prefer WebFetch over WebSearch — faster and lands on the exact reference. Only fetch what you need. Replace <VERSION> with the following before fetching:
- docs.unity3d.com: The Unity version, eg
6000.6 - Package on docs.unity3d.com: The package version, eg
@6.6or@2.0. Check the package version if unsure. - Engine on docs.unity.com: The Unity version, eg
6000.3 - docs.unity.com: The product version, eg
7000.0
Each page lists its local file, then its online page:
- Add a pixel perfect camera (URP) —
urp/2d-pixelperfect-prep-sprites.html,https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/2d-urp/2d-pixelperfect/prep-sprites.md: preparing sprites and adding the camera. - Configure a pixel perfect camera (URP) —
urp/2d-pixelperfect-configure.html,https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/2d-urp/2d-pixelperfect/configure.md: reference resolution, grid snapping, and upscaling. - Pixel Perfect Camera reference (URP) —
urp/2d-pixelperfect-ref.html,https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/2d-urp/2d-pixelperfect/ref.md: every URP Pixel Perfect Camera property. - Renderer 2D asset reference —
urp/2DRendererData-overview.html,https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/2d-urp/2drenderer-data-overview.md: creating and assigning the Renderer 2D asset. - Sprite texture import settings —
texture-type-sprite.html,https://docs.unity.com/en-us/engine/<VERSION>/manual/materials-and-shaders/textures/textures-reference/texture-type-sprite.md: Filter Mode, Pixels Per Unit, mipmaps, compression.
Package manual pages
The docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/<package-name>@*/. Read only the .md files in that specific PackageCache subfolder. You must not look at non-.md files, or look outside at other Library or PackageCache folders, otherwise it takes too much time.
If that folder has no .md files, use the online pages at https://docs.unity3d.com/Packages/<package-name>@<VERSION>/manual/ instead, because some packages don't ship their docs.
com.unity.2d.pixel-perfect—Documentation~/index.md: the Built-in Pixel Perfect Camera package.com.unity.cinemachine—Documentation~/CinemachinePixelPerfect.md: the Cinemachine Pixel Perfect extension.com.unity.render-pipelines.high-definition—Documentation~/Custom-Pass.md: HDRP custom passes, for the HDRP fallback.
Workflow
- Detect the render pipeline with
DetectPipeline()fromreferences/pipeline-detection.cs, because URP and Built-in use different components. - Run the Diagnostic Checklist on the in-scope scene, then check Common Issues & Solutions for the user's symptom.
- Report what you found to the user before you change anything, because they might not want every finding fixed.
- Create a restore point, then fix only what's broken.
- Run the Final step, then report back as described in Final report.
⚠ There Are Two Completely Separate Implementations
Pixel perfect rendering in Unity is not one system — it is two separate, incompatible implementations, one
Установить configure-2d-pixel-perfect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл configure-2d-pixel-perfect?
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.
Как установить скилл configure-2d-pixel-perfect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-2d-pixel-perfect запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub