sprite-editor
БесплатноЗапускает вложенные скриптыНе проверенEdits sprite rectangles, names, borders, pivots, outlines, and slicing in a texture's import data by generating C# Editor scripts. Use when asked to slice a…
от Unity-Technologies★ 1 342 звезды на GitHubОб этом скилле
Sprite Editor
Edit sprite metadata (rects, names, borders, pivots, outlines) through ISpriteEditorDataProvider in a connected Unity Editor.
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills for each step. - Don't use
usingdirectives or unqualified types in thesnippetforscript eval. The compiler reads usingUnityEngineand a bare AssetDatabase, Volume, or Object causes errors (CS0246 / CS0103 / CS0104).returnwhat you want to read; it arrives atdata.result.result. - 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.
Step 1
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.
Full topic map
The Sprite Editor Data Provider API docs ship with the 2D Sprite package. The docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/com.unity.2d.sprite@*/. 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, fetch https://docs.unity3d.com/Packages/com.unity.2d.sprite@<VERSION>/manual/DataProvider.html, because that website has no .md variant.
The Sprite Editor window pages are in the Unity Manual. Check the project's Unity version first, because the docs location depends on it:
- Unity 6000.0 and later: If the Editor install folder has a
Data/Documentationfolder (eg...Unity/Hub/Editor/6000.6.0b2/Editor/Data/Documentation), read the html files from the<editor-install>/Editor/Data/Documentation/en/Manualfolder. Otherwise the docs pages are online athttps://docs.unity.com/en-us/engine/<VERSION>/manual/. - Earlier versions: Read the same local folder if it exists. Otherwise fetch
https://docs.unity3d.com/<VERSION>/Documentation/Manual/SpriteEditor.htmland follow its links, because docs.unity.com has no pages for those versions and the file names differ.
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.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
Before fetching, check that <VERSION> is listed as a ## Version heading in https://docs.unity.com/en-us/engine/llms.txt. If it isn't, use the docs.unity3d.com Manual instead. The two sites use different page names, so don't reuse the paths below. Instead, find each page by its title in https://docs.unity3d.com/<VERSION>/Documentation/Manual/docdata/toc.js, then fetch https://docs.unity3d.com/<VERSION>/Documentation/Manual/<link>.html, where <link> is the link value next to the title.
For Engine pages, <VERSION> is the Unity major.minor from ProjectSettings/ProjectVersion.txt, for example 6000.0 from 6000.0.58f1, because the full build number gives a 404. For the 2D Sprite package, <VERSION> is the com.unity.2d.sprite major.minor from Packages/packages-lock.json, for example 1.0.
- Sprite Editor Data Provider API —
Documentation~/DataProvider.mdinPackageCache: code examples for editing sprite data through the providers. - Cut out sprites from a texture — local
sprite/sprite-editor/use-editor.html: slicing a texture into sprites in the Sprite Editor window. - Sprite Editor tab reference for the Sprite Editor window — local
sprite/sprite-editor/sprite-editor-window-reference.html: slice types, pivot, border, and sprite rect settings. - Custom Outline tab reference for the Sprite Editor window — local
sprite/sprite-editor/custom-outline-editor-reference.html: editing the outline Unity uses to build the sprite mesh. - [Custom
Установить sprite-editor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sprite-editor?
Edits sprite rectangles, names, borders, pivots, outlines, and slicing in a texture's import data by generating C# Editor scripts. Use when asked to slice a sprite sheet or change sprite pivots, borders, or outlines by script.
Как установить скилл sprite-editor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sprite-editor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic