← ClaudeAtlas

unity-2d-spriteslisted

Slice sprite sheets, set pivots and 9-slice from script, and turn frames into an AnimationClip.
tipoLi5890/unity-dev-skills · ★ 2 · AI & Automation · score 75
Install: claude install-skill tipoLi5890/unity-dev-skills
# unity-2d-sprites — the metadata is inside the importer, not in a file > **Sprite rects, pivots, borders and outlines are not stored anywhere you can edit.** They live > in importer data reached through `ISpriteEditorDataProvider`. There is no file to patch, and > **hand-editing the `.meta` corrupts it** — the capability checks in §2 exist precisely because > the importer's contract is not enforced by the type system. ## Start here — symptom → where to look | Symptom | Go to | |---|---| | No live Editor, or no `eval` | [Getting there](#getting-there) — needs a live Editor (`unity-debug`) | | Sheet imported as a single sprite | §1 — `spriteImportMode` | | "Slice this sprite sheet" (grid, automatic, isometric); cut a sheet into frames | §3 | | Irregular frames, or a grid with padding between cells | §3 — `resources/Editor/AutomaticSliceSheet.cs` | | "Set the pivot on every frame"; frames right, pivots wrong | §3 pivots | | "Set up 9-slice on this panel"; a UI panel stretches its corners | §3 borders | | Slicing "worked" but the names are `sprite_0` | §3 naming | | Collider shape does not match the art | §4 outlines | | The script throws about capabilities | §2 — do not bypass it | | Loading a sprite **by filename** returns null, texture looks fine | §1 — `Multiple` with no rects | | Editor script will not compile, or cannot see `ISpriteEditorDataProvider`: the types "do not exist" | §0 — the asmdef reference | | New art in the folder never shows up in the game | §5 — the pa