Command Palette

Search for a command to run...

Назад к скиллам
скилл № 55166

manage-sprite-atlas

Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to…

БесплатноЗапускает вложенные скрипты
Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Установить manage-sprite-atlas в Claude Code и Claude Desktop

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

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

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

Об этом скилле

Unity SpriteAtlas V2

Provides editor-safe procedural knowledge for scripting atlases in Unity projects. V2 enforces strict separation between editor authoring and runtime access.

⚠ Critical V2 Principle: SpriteAtlas is runtime-only. SpriteAtlasAsset is editor-only. Never mix contexts. Always use V2.

Important

  • Use the unity cli (unity command --format json) and the unity-cli and unity-pipeline skills for each step.
  • Run C# with unity command script eval --code '<snippet>'. Don't use using directives or unqualified types in the snippet. The compiler reads using UnityEngine and a bare AssetDatabase, SpriteAtlas, or Object causes errors (CS0246 / CS0103 / CS0104). return what you want to read; it arrives at data.result.result.
  • 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.
  • Never leave verification code in the user's script. Never build logging or detection they didn't ask for. See Final step.
  • Avoid long explanations.

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.

For Engine 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/<local file>), and Script Reference pages from en/ScriptReference.

Otherwise the docs pages are online at https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/sprite/atlas.md. Prefer fetching the page directly (for example WebFetch) over searching (for example WebSearch) — faster and lands on the exact reference. Only fetch what you need, and only search if you don't have the exact URL. 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

Read the Unity version from ProjectSettings/ProjectVersion.txt, and the com.unity.addressables major.minor for the Addressables docs from Packages/packages-lock.json.

For Addressables pages: the docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/com.unity.addressables@*/. 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/com.unity.addressables@<VERSION>/manual/, because some packages don't ship their docs.

The page list, with each page's local file and online URL, is in references/docs-map.md.

API reference

The API is UnityEditor.U2D (SpriteAtlasAsset, SpriteAtlasImporter, SpriteAtlasUtility) and UnityEngine.U2D (SpriteAtlas, SpriteAtlasManager), part of the Unity Engine. It is versioned by Unity version, so check the project's Unity version before relying on a specific class or method.

  1. Use the unity-cli skill to check the project's Unity version.
  2. If the Editor install folder has a Data/Documentation folder (e.g. .../Unity/Hub/Editor/6000.6.0b2/Editor/Data/Documentation), grep the html files in the en/ScriptReference folder inside, and skip the remaining steps.
  3. Otherwise, fetch and cache https://docs.unity3d.com/<VERSION>/Documentation/ScriptReference/xrefmap.yml (replace <VERSION> with the Unity version, e.g. 6000.3). This file lists every public API member's fully qualified name as a uid (e.g. uid: 'UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3)').
  4. Grep the yml file locally for a class or method instead of refetching per lookup. The file is large (about 6 MB), so don't read the whole file.
  5. Convert the uid to a markdown page: remove the parameters in brackets, lowercase it, replace . with /, and add .md. Then fetch https://docs.unity.com/en-us/engine/<VERSION>/script-reference/<converted uid>. For example, UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3) => `https://docs.unity.com/en-us/engine/6000.3/script-referen
Полный SKILL.md на GitHub

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

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

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

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

  • SECURITY.md
  • references/addressables-delivery.md
  • references/api.md
  • references/best-practices.md
  • references/categorization-patterns.md
  • references/common-errors.md
  • references/custom-packing.md
  • references/docs-map.md
  • references/manual-authoring.md
  • references/workflow.md
  • scripts/authoringvsruntime.cs
  • scripts/buildaddressablespostprocess.cs
  • scripts/cacheloadedatlases.cs
  • scripts/cleanupbatchoperations.cs
  • scripts/createandconfiguremasteratlas.cs
  • scripts/custompackersetup.cs
  • scripts/deprecatedmethods.cs
  • scripts/dontmodifywithoutsaving.cs
  • scripts/dontpackinruntimebuilds.cs
  • scripts/dontscriptspriteatlasineditor.cs
  • scripts/editorconfiguration.cs
  • scripts/enablespritepacking.cs
  • scripts/gridspritepacker.cs
  • scripts/handlelatebinding.cs
  • scripts/handlenullcases.cs
  • scripts/migratev1tov2.cs
  • scripts/multipagepacker.cs
  • scripts/optimizetexturesettings.cs
  • scripts/packerdebugging.cs
  • scripts/packtransform.cs
  • scripts/platformnames.cs
  • scripts/queryspritesefficiently.cs
  • scripts/registercallbacks.cs
  • scripts/runtimeatlasloader.cs
  • scripts/runtimespriteaccess.cs
  • scripts/savespriteatlasasset.cs
  • scripts/scriptablepacker.cs
  • scripts/setincludeinbuild.cs
  • scripts/sizeoptimizedpacker.cs
  • scripts/spriteatlaslatebinding.cs

FAQ

Что делает скилл manage-sprite-atlas?

Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to create or optimize sprite atlases.

Как установить скилл manage-sprite-atlas?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл manage-sprite-atlas запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить manage-sprite-atlas с