Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 the unity-cli and unity-pipeline skills 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:

  1. 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.
  2. 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.6 or @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

  1. Detect the render pipeline with DetectPipeline() from references/pipeline-detection.cs, because URP and Built-in use different components.
  2. Run the Diagnostic Checklist on the in-scope scene, then check Common Issues & Solutions for the user's symptom.
  3. Report what you found to the user before you change anything, because they might not want every finding fixed.
  4. Create a restore point, then fix only what's broken.
  5. 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

Полный SKILL.md на GitHub

Установить configure-2d-pixel-perfect в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SECURITY.mdreferences/api-reference.mdreferences/camera-setup-builtin.csreferences/camera-setup-urp.csreferences/pipeline-detection.csreferences/sprite-settings.cs

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), без исполняемых скриптов.

Похожие скиллы

Сравнить configure-2d-pixel-perfect с