[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMFSHHQ1D9MC3MM73M93FS":3,"skill-same:01M7CMFSHHQ1D9MC3MM73M93FS":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CMFSHHQ1D9MC3MM73M93FS","unity-2d-sprites",null,"Slice sprite sheets, set pivots and 9-slice from script, and turn frames into an AnimationClip.","tipoLi5890\u002Funity-dev-skills","tipoLi5890","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F177803612?v=4","01M7CMD7DHGZ09CB53CRFHAA34","Li, ching yu","01M7CMD7E70K5RAHWWZVYX9YMG",2,"MIT","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-2d-sprites\ndescription: >-\n  Slice sprite sheets, set pivots and 9-slice from script, and turn frames\n  into an AnimationClip.\n---\n\n# unity-2d-sprites — the metadata is inside the importer, not in a file\n\n> **Sprite rects, pivots, borders and outlines are not stored anywhere you can edit.** They live\n> in importer data reached through `ISpriteEditorDataProvider`. There is no file to patch, and\n> **hand-editing the `.meta` corrupts it** — the capability checks in §2 exist precisely because\n> the importer's contract is not enforced by the type system.\n\n## Start here — symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| No live Editor, or no `eval` | [Getting there](#getting-there) — needs a live Editor (`unity-debug`) |\n| Sheet imported as a single sprite | §1 — `spriteImportMode` |\n| \"Slice this sprite sheet\" (grid, automatic, isometric); cut a sheet into frames | §3 |\n| Irregular frames, or a grid with padding between cells | §3 — `resources\u002FEditor\u002FAutomaticSliceSheet.cs` |\n| \"Set the pivot on every frame\"; frames right, pivots wrong | §3 pivots |\n| \"Set up 9-slice on this panel\"; a UI panel stretches its corners | §3 borders |\n| Slicing \"worked\" but the names are `sprite_0` | §3 naming |\n| Collider shape does not match the art | §4 outlines |\n| The script throws about capabilities | §2 — do not bypass it |\n| Loading a sprite **by filename** returns null, texture looks fine | §1 — `Multiple` with no rects |\n| Editor script will not compile, or cannot see `ISpriteEditorDataProvider`: the types \"do not exist\" | §0 — the asmdef reference |\n| New art in the folder never shows up in the game | §5 — the passes ran in the wrong order |\n| Import settings skip files that were already there | §5 — a postprocessor only fires on import |\n| A stretched effect sprite stops short of its target | `reference\u002Fsprite-geometry.md` §1 |\n| \"Turn these frames into an animation\" (an `AnimationClip`) | §7 — the clip, then the controller |\n| The character bobs or jumps between frames; an idle shimmers | §7 — the frames, not pivots |\n| The clip plays and nothing moves | §7 — the curve is bound to the wrong `path` |\n\n## 0. The API is in a package, and a 3D project does not have it\n\n> **`ISpriteEditorDataProvider` and everything around it ship in `com.unity.2d.sprite`.** Without\n> it the types do not exist and the code **does not compile** — the first thing that happens on a 3D\n> project, where the error names a missing assembly reference rather than a missing package.\n\nCheck first. Adding it is a project change — `unity-new-project` →\n`reference\u002Fpackage-bootstrap.md`, or the Editor's own `package_add` command, which **refuses\nwithout `confirm=true`**:\n\n```bash\nunity command eval 'return UnityEditor.PackageManager.PackageInfo.FindForAssetPath(\n  \"Packages\u002Fcom.unity.2d.sprite\u002Fpackage.json\") != null;'\nunity command package_add -- --identifier com.unity.2d.sprite --confirm true\nunity command package_status          # poll until \"completed\"\n```\n\n> **The package being present is not enough for code that lives in your own asmdef.** `eval` sees\n> these types with nothing declared; an Editor script inside an assembly definition does not until\n> **`\"Unity.2D.Sprite.Editor\"`** is in that asmdef's `references`, and the plain *type or namespace\n> not found* sends people to re-add a package that is already there.\n> `reference\u002Fimport-pipeline.md` §1.\n\n## Getting there\n\nThis skill needs a **live Editor with `eval`** — `unity-debug` → `reference\u002Feditor-control.md`\ncovers installing `com.unity.pipeline`, confirming the Editor is reachable, and telling a\ngenuinely absent Editor apart from one wedged in Safe Mode. Two things it cannot know:\n\n- **You need `eval` specifically.** Its presence depends on the Pipeline package version, not\n  the CLI version: `unity command --format json --query eval`. Some versions also register\n  `eval_file`; **check before reaching for it, it is frequently absent.**\n- **An unreachable Editor is a stop, not a cue to improvise.** Every fallback risks corrupting\n  importer data.\n\n`eval` compiles a statement block, so `using` directives are rejected (`CS0210`) and every snippet\nhere is fully qualified; saved as a `.cs` file, add the usings back. `unity command` defaults to a\n30-second timeout; a large atlas needs `--timeout`. **The namespaces are not where you would\nguess** — `SpriteRect` and `SpriteNameFileIdPair` sit in `UnityEditor`, `GUID` is\n`UnityEngine.GUID` — so use the table in `reference\u002Fdata-provider.md` §1, not reasoning.\n\n## 1. The importer must be a Sprite, in Multiple mode, first\n\n> **A plain PNG does not import as a sprite at all.** A freshly imported `.png` in a 3D\n> project reports `spriteImportMode = None` — not `Single`. Setting `spriteImportMode` alone on\n> a texture whose `textureType` is still `Default` does not give you sprite data. Set **both**:\n\n```csharp\nvar ti = (UnityEditor.TextureImporter)UnityEditor.AssetImporter.GetAtPath(path);\nti.textureType      = UnityEditor.TextureImporterType.Sprite;      \u002F\u002F easy to omit; nothing works without it\nti.spriteImportMode = UnityEditor.SpriteImportMode.Multiple;\nti.SaveAndReimport();\n```\n\nRe-fetch the importer after `SaveAndReimport()` before asserting on it. Flipping an already-sliced\nsheet to `Single` and back to `Multiple` is **non-destructive** — the rects and their names survive\nthe round trip — so do not panic-rebuild a slice because the mode was toggled.\n\n> **`Multiple` is a promise to slice — a texture left in it with no rects publishes no sprite at\n> all.** In `Single` mode the importer publishes one `Sprite` sub-asset **named after the file** —\n> the name `Resources.Load`, Addressables and every by-name lookup depend on; an unsliced\n> `Multiple` texture publishes none, and lookups return `null` while it looks normal (a test fails\n> with `sprite '\u003Cfilename>' not found`). Never set `Multiple` \"to be safe\", never *preserve* the\n> mode a texture already had: derive it from a rule you can state, and slice in the same run that\n> sets it. `reference\u002Fimport-pipeline.md` §4.\n\nCheck `pixelsPerUnit` before computing world units: it is per-asset, and the default is rarely\nwhat a project uses.\n\n## 2. The capability gate — never bypass it\n\n> **The check that fires first is not the capability gate — it is a null data provider.**\n> `GetSpriteEditorDataProviderFromObject` returns **`null`** for an asset with no sprite\n> data (a `.cs` file, any non-texture), and `InitSpriteEditorDataProvider()` on that is the\n> `NullReferenceException` most scripts hit. **Null-check the provider before anything else.**\n\nThe capability gate is the *second* check. `TextureImporter` reports **every capability `true`**\n— including in `Single` mode — so on a plain PNG the gate never fires. `PSBImporter` and custom\nimporters are where it does, and **an unsupported edit there is not rejected, it is accepted and\ncorrupts the data.** Keep the gate: four lines against silent data loss on the one importer\nthat needed it. Then `SetSpriteRects`, `Apply()` and `SaveAndReimport()` —\nnothing persists without the last. The sequence in code, the `EEditCapability` members and which\nedit needs which: `reference\u002Fdata-provider.md` §2.\n\n## 3. Slicing, pivots, borders, names\n\n**Grid** (fixed cell; count cells from the texture size), **Automatic** (islands; merges touching\nframes, splits detached parts) or **Isometric** (diamond cells), against the real size from\n`ITextureDataProvider`. **Pivots** are normalised, set with `SpriteAlignment.Custom` (never `9`):\n`(0.5, 0)` for a character's feet. **Borders** are `Vector4(left, bottom, right, top)` in pixels —\n9-slice reads them; stretched corners mean a zero border. **Name during the slice** (`sprite_0` is\nunusable), update the name↔fileID map on 2021.2+, and **reuse existing rects when re-slicing**.\nIn `Single` mode add a whole-texture rect named after the file stem. Each rule with its code:\n`reference\u002Fslicing-and-scripts.md` §3.\n\n## 4. Outlines\n\nThe render outline and the collider outline are **two providers, not one setting**, and the\ntessellation that suits one wastes the other: a physics outline cut as finely as a render outline\nis an expensive `PolygonCollider2D` for no gameplay benefit. Both, the `0`–`1` detail range and the\nother providers: `reference\u002Fdata-provider.md` §1.\n\n## 5. Style rules for generated scripts\n\nStandalone snippets only (no `AssetPostprocessor`, no `MenuItem` for a one-off job; a committed\nproject postprocessor is fine and **only fires on import**); enums cast, never magic numbers;\nverify by reading back through a fresh provider (§6). In a project pipeline the metadata pass\nfinishes before any generator writes `Sprite` references, and either pass can exit 0 having wired\nnothing. The rules, the ordering and which script in `resources\u002F` does what:\n`reference\u002Fslicing-and-scripts.md` §5.\n\n## 6. The acceptance test: named sprites, not rects\n\n**Real `Sprite` sub-assets, addressable by name, are the acceptance test.** Rects are not sprites\nuntil `Apply()` + `SaveAndReimport()` succeed, so never report a slice done because\n`GetSpriteRects()` returned the right count. Worked example: a 128×64 sheet cut on a 32 px grid\n(4×2) reads back through a **fresh** provider as eight rects — `cell_000`…`cell_007`, top-left\nreading order (`0,32` … `96,0`), `pivot=(0.5, 0)`, `alignment=Custom` — with eight\n`SpriteNameFileIdPair`s persisted, and it passes only when the asset holds eight `Sprite`s:\n\n```csharp\nint n = 0;\nforeach (var o in UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path))\n    if (o is UnityEngine.Sprite) n++;\nreturn n;                                  \u002F\u002F must equal the frame count you asked for\n```\n\n## 7. Frames into a clip\n\n> **Unity cannot play a GIF.** A preview is a review artifact; the game plays an `AnimationClip`\n> with an object-reference curve on `m_Sprite` and an `AnimatorController` whose default state is it.\n\nFour facts decide whether it works: **`m_Sprite`** on both `SpriteRenderer` and\n`UnityEngine.UI.Image`; `binding.path` relative to the `Animator`'s GameObject (wrong, and the clip\nplays while nothing moves); a new clip's **`frameRate = 60`**, so set it;\n`AnimationClipSettings.loopTime` lands only through `SetAnimationClipSettings`. **A bob or a jump\nbetween frames is fixed in the frames** (`codex-visual`), not in sixteen pivots; every\nrect takes ONE pivot, the sidecar's `pivot_norm`. **An idle that boils** plays one frame,\nmoved in code. **Slice, `Apply()`, `SaveAndReimport()`, then build the clip** (§5), or the curve is\nfull of nulls. The whole path is `reference\u002Fsprite-animation.md`; `resources\u002FEditor\u002FFramesJsonImporter.cs`\napplies `frames.json` (pivot, PPU, filter) on import, `resources\u002FEditor\u002FSheetToAnimationClip.cs`\nbuilds the clip (fps, loop, hold), and `resources\u002FTests\u002FSpriteFramesAudit.cs` re-measures the frames.\n\n## Scope — what this skill does NOT do\n\n**Frame animation is in** — a clip whose keyframes swap one sprite for the next is sprite metadata\none step further on (§7). **Rig animation is out**, and the line is the deformer: a skeleton that\nbends the art, blend trees, masked layers, Avatars and root motion belong to\n`unity-rigged-character`, the 3D character pipeline. **2D bones, skinning weights, PSB rigs and\nSprite Library** are `unity-2d-animation`.\n\nAlso out: 2D physics (`unity-physics-2d`) and generating the\nartwork (`codex-visual`, which produces the equal-canvas frames §7 consumes and the previews Unity\nwill not play). **Sprite atlas packing** and the memory it buys → `unity-sprite-atlas`; **tilemap\nauthoring** — palettes, Rule Tiles, autotiling from the rects sliced here → `unity-tilemap`;\n**pixel-art filtering and camera snapping** → `unity-2d-pixel-perfect`.\n","# unity-2d-sprites — the metadata is inside the importer, not in a file\n\n> **Sprite rects, pivots, borders and outlines are not stored anywhere you can edit.** They live\n> in importer data reached through `ISpriteEditorDataProvider`. There is no file to patch, and\n> **hand-editing the `.meta` corrupts it** — the capability checks in §2 exist precisely because\n> the importer's contract is not enforced by the type system.\n\n## Start here — symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| No live Editor, or no `eval` | [Getting there](#getting-there) — needs a live Editor (`unity-debug`) |\n| Sheet imported as a single sprite | §1 — `spriteImportMode` |\n| \"Slice this sprite sheet\" (grid, automatic, isometric); cut a sheet into frames | §3 |\n| Irregular frames, or a grid with padding between cells | §3 — `resources\u002FEditor\u002FAutomaticSliceSheet.cs` |\n| \"Set the pivot on every frame\"; frames right, pivots wrong | §3 pivots |\n| \"Set up 9-slice on this panel\"; a UI panel stretches its corners | §3 borders |\n| Slicing \"worked\" but the names are `sprite_0` | §3 naming |\n| Collider shape does not match the art | §4 outlines |\n| The script throws about capabilities | §2 — do not bypass it |\n| Loading a sprite **by filename** returns null, texture looks fine | §1 — `Multiple` with no rects |\n| Editor script will not compile, or cannot see `ISpriteEditorDataProvider`: the types \"do not exist\" | §0 — the asmdef reference |\n| New art in the folder never shows up in the game | §5 — the passes ran in the wrong order |\n| Import settings skip files that were already there | §5 — a postprocessor only fires on import |\n| A stretched effect sprite stops short of its target | `reference\u002Fsprite-geometry.md` §1 |\n| \"Turn these frames into an animation\" (an `AnimationClip`) | §7 — the clip, then the controller |\n| The character bobs or jumps between frames; an idle shimmers | §7 — the frames, not pivots |\n| The clip plays and nothing moves | §7 — the curve is bound to the wrong `path` |\n\n## 0. The API is in a package, and a 3D project does not have it\n\n> **`ISpriteEditorDataProvider` and everything around it ship in `com.unity.2d.sprite`.** Without\n> it the types do not exist and the code **does not compile** — the first thing that happens on a 3D\n> project, where the error names a missing assembly reference rather than a missing package.\n\nCheck first. Adding it is a project change — `unity-new-project` →\n`reference\u002Fpackage-bootstrap.md`, or the Editor's own `package_add` command, which **refuses\nwithout `confirm=true`**:\n\n```bash\nunity command eval 'return UnityEditor.PackageManager.PackageInfo.FindForAssetPath(\n  \"Packages\u002Fcom.unity.2d.sprite\u002Fpackage.json\") != null;'\nunity command package_add -- --identifier com.unity.2d.sprite --confirm true\nunity command package_status          # poll until \"completed\"\n```\n\n> **The package being present is not enough for code that lives in your own asmdef.** `eval` sees\n> these types with nothing declared; an Editor script inside an assembly definition does not until\n> **`\"Unity.2D.Sprite.Editor\"`** is in that asmdef's `references`, and the plain *type or namespace\n> not found* sends people to re-add a package that is already there.\n> `reference\u002Fimport-pipeline.md` §1.\n\n## Getting there\n\nThis skill needs a **live Editor with `eval`** — `unity-debug` → `reference\u002Feditor-control.md`\ncovers installing `com.unity.pipeline`, confirming the Editor is reachable, and telling a\ngenuinely absent Editor apart from one wedged in Safe Mode. Two things it cannot know:\n\n- **You need `eval` specifically.** Its presence depends on the Pipeline package version, not\n  the CLI version: `unity command --format json --query eval`. Some versions also register\n  `eval_file`; **check before reaching for it, it is frequently absent.**\n- **An unreachable Editor is a stop, not a cue to improvise.** Every fallback risks corrupting\n  importer data.\n\n`eval` compiles a statement block, so `using` directives are rejected (`CS0210`) and every snippet\nhere is fully qualified; saved as a `.cs` file, add the usings back. `unity command` defaults to a\n30-second timeout; a large atlas needs `--timeout`. **The namespaces are not where you would\nguess** — `SpriteRect` and `SpriteNameFileIdPair` sit in `UnityEditor`, `GUID` is\n`UnityEngine.GUID` — so use the table in `reference\u002Fdata-provider.md` §1, not reasoning.\n\n## 1. The importer must be a Sprite, in Multiple mode, first\n\n> **A plain PNG does not import as a sprite at all.** A freshly imported `.png` in a 3D\n> project reports `spriteImportMode = None` — not `Single`. Setting `spriteImportMode` alone on\n> a texture whose `textureType` is still `Default` does not give you sprite data. Set **both**:\n\n```csharp\nvar ti = (UnityEditor.TextureImporter)UnityEditor.AssetImporter.GetAtPath(path);\nti.textureType      = UnityEditor.TextureImporterType.Sprite;      \u002F\u002F easy to omit; nothing works without it\nti.spriteImportMode = UnityEditor.SpriteImportMode.Multiple;\nti.SaveAndReimport();\n```\n\nRe-fetch the importer after `SaveAndReimport()` before asserting on it. Flipping an already-sliced\nsheet to `Single` and back to `Multiple` is **non-destructive** — the rects and their names survive\nthe round trip — so do not panic-rebuild a slice because the mode was toggled.\n\n> **`Multiple` is a promise to slice — a texture left in it with no rects publishes no sprite at\n> all.** In `Single` mode the importer publishes one `Sprite` sub-asset **named after the file** —\n> the name `Resources.Load`, Addressables and every by-name lookup depend on; an unsliced\n> `Multiple` texture publishes none, and lookups return `null` while it looks normal (a test fails\n> with `sprite '\u003Cfilename>' not found`). Never set `Multiple` \"to be safe\", never *preserve* the\n> mode a texture already had: derive it from a rule you can state, and slice in the same run that\n> sets it. `reference\u002Fimport-pipeline.md` §4.\n\nCheck `pixelsPerUnit` before computing world units: it is per-asset, and the default is rarely\nwhat a project uses.\n\n## 2. The capability gate — never bypass it\n\n> **The check that fires first is not the capability gate — it is a null data provider.**\n> `GetSpriteEditorDataProviderFromObject` returns **`null`** for an asset with no sprite\n> data (a `.cs` file, any non-texture), and `InitSpriteEditorDataProvider()` on that is the\n> `NullReferenceException` most scripts hit. **Null-check the provider before anything else.**\n\nThe capability gate is the *second* check. `TextureImporter` reports **every capability `true`**\n— including in `Single` mode — so on a plain PNG the gate never fires. `PSBImporter` and custom\nimporters are where it does, and **an unsupported edit there is not rejected, it is accepted and\ncorrupts the data.** Keep the gate: four lines against silent data loss on the one importer\nthat needed it. Then `SetSpriteRects`, `Apply()` and `SaveAndReimport()` —\nnothing persists without the last. The sequence in code, the `EEditCapability` members and which\nedit needs which: `reference\u002Fdata-provider.md` §2.\n\n## 3. Slicing, pivots, borders, names\n\n**Grid** (fixed cell; count cells from the texture size), **Automatic** (islands; merges touching\nframes, splits detached parts) or **Isometric** (diamond cells), against the real size from\n`ITextureDataProvider`. **Pivots** are normalised, set with `SpriteAlignment.Custom` (never `9`):\n`(0.5, 0)` for a character's feet. **Borders** are `Vector4(left, bottom, right, top)` in pixels —\n9-slice reads them; stretched corners mean a zero border. **Name during the slice** (`sprite_0` is\nunusable), update the name↔fileID map on 2021.2+, and **reuse existing rects when re-slicing**.\nIn `Single` mode add a whole-texture rect named after the file stem. Each rule with its code:\n`reference\u002Fslicing-and-scripts.md` §3.\n\n## 4. Outlines\n\nThe render outline and the collider outline are **two providers, not one setting**, and the\ntessellation that suits one wastes the other: a physics outline cut as finely as a render outline\nis an expensive `PolygonCollider2D` for no gameplay benefit. Both, the `0`–`1` detail range and the\nother providers: `reference\u002Fdata-provider.md` §1.\n\n## 5. Style rules for generated scripts\n\nStandalone snippets only (no `AssetPostprocessor`, no `MenuItem` for a one-off job; a committed\nproject postprocessor is fine and **only fires on import**); enums cast, never magic numbers;\nverify by reading back through a fresh provider (§6). In a project pipeline the metadata pass\nfinishes before any generator writes `Sprite` references, and either pass can exit 0 having wired\nnothing. The rules, the ordering and which script in `resources\u002F` does what:\n`reference\u002Fslicing-and-scripts.md` §5.\n\n## 6. The acceptance test: named sprites, not rects\n\n**Real `Sprite` sub-assets, addressable by name, are the acceptance test.** Rects are not sprites\nuntil `Apply()` + `SaveAndReimport()` succeed, so never report a slice done because\n`GetSpriteRects()` returned the right count. Worked example: a 128×64 sheet cut on a 32 px grid\n(4×2) reads back through a **fresh** provider as eight rects — `cell_000`…`cell_007`, top-left\nreading order (`0,32` … `96,0`), `pivot=(0.5, 0)`, `alignment=Custom` — with eight\n`SpriteNameFileIdPair`s persisted, and it passes only when the asset holds eight `Sprite`s:\n\n```csharp\nint n = 0;\nforeach (var o in UnityEditor.AssetDatabase.LoadAllAssetsAtPath(path))\n    if (o is UnityEngine.Sprite) n++;\nreturn n;                                  \u002F\u002F must equal the frame count you asked for\n```\n\n## 7. Frames into a clip\n\n> **Unity cannot play a GIF.** A preview is a review artifact; the game plays an `AnimationClip`\n> with an object-reference curve on `m_Sprite` and an `AnimatorController` whose default state is it.\n\nFour facts decide whether it works: **`m_Sprite`** on both `SpriteRenderer` and\n`UnityEngine.UI.Image`; `binding.path` relative to the `Animator`'s GameObject (wrong, and the clip\nplays while nothing moves); a new clip's **`frameRate = 60`**, so set it;\n`AnimationClipSettings.loopTime` lands only through `SetAnimationClipSettings`. **A bob or a jump\nbetween frames is fixed in the frames** (`codex-visual`), not in sixteen pivots; every\nrect takes ONE pivot, the sidecar's `pivot_norm`. **An idle that boils** plays one frame,\nmoved in code. **Slice, `Apply()`, `SaveAndReimport()`, then build the clip** (§5), or the curve is\nfull of nulls. The whole path is `reference\u002Fsprite-animation.md`; `resources\u002FEditor\u002FFramesJsonImporter.cs`\napplies `frames.json` (pivot, PPU, filter) on import, `resources\u002FEditor\u002FSheetToAnimationClip.cs`\nbuilds the clip (fps, loop, hold), and `resources\u002FTests\u002FSpriteFramesAudit.cs` re-measures the frames.\n\n## Scope — what this skill does NOT do\n\n**Frame animation is in** — a clip whose keyframes swap one sprite for the next is sprite metadata\none step further on (§7). **Rig animation is out**, and the line is the deformer: a skeleton that\nbends the art, blend trees, masked layers, Avatars and root motion belong to\n`unity-rigged-character`, the 3D character pipeline. **2D bones, skinning weights, PSB rigs and\nSprite Library** are `unity-2d-animation`.\n\nAlso out: 2D physics (`unity-physics-2d`) and generating the\nartwork (`codex-visual`, which produces the equal-canvas frames §7 consumes and the previews Unity\nwill not play). **Sprite atlas packing** and the memory it buys → `unity-sprite-atlas`; **tilemap\nauthoring** — palettes, Rule Tiles, autotiling from the rects sliced here → `unity-tilemap`;\n**pixel-art filtering and camera snapping** → `unity-2d-pixel-perfect`.\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-2d-sprites",0,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills","https:\u002F\u002Fgithub.com\u002FtipoLi5890","https:\u002F\u002Ftipoli5890.github.io\u002F","2026-11-10 09:16:41",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tipoLi5890\u002Funity-dev-skills --skill unity-2d-sprites",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-2d-sprites",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-2d-sprites","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002FSKILL.md",true,[46,52,56,60,64,68,74,78,82,86,90,94],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fdata-provider.md","REFERENCE","参考文档",14321,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Freference\u002Fdata-provider.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fimport-pipeline.md",8824,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Freference\u002Fimport-pipeline.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fslicing-and-scripts.md",4755,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Freference\u002Fslicing-and-scripts.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fsprite-animation.md",25811,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Freference\u002Fsprite-animation.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fsprite-geometry.md",6076,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Freference\u002Fsprite-geometry.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"resources\u002FEditor\u002FAutomaticSliceSheet.cs","OTHER","其他",15422,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FEditor\u002FAutomaticSliceSheet.cs",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002FEditor\u002FFramesJsonImporter.cs",20992,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FEditor\u002FFramesJsonImporter.cs",{"path":79,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FEditor\u002FIsometricSliceSheet.cs",18172,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FEditor\u002FIsometricSliceSheet.cs",{"path":83,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":84,"sourceHtmlUrl":85},"resources\u002FEditor\u002FSheetToAnimationClip.cs",24358,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FEditor\u002FSheetToAnimationClip.cs",{"path":87,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":88,"sourceHtmlUrl":89},"resources\u002FEditor\u002FSliceSheet.cs",6360,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FEditor\u002FSliceSheet.cs",{"path":91,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002FSpriteToPng.cs",3859,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FSpriteToPng.cs",{"path":95,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":96,"sourceHtmlUrl":97},"resources\u002FTests\u002FSpriteFramesAudit.cs",32814,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-2d-sprites\u002Fresources\u002FTests\u002FSpriteFramesAudit.cs",[99,106,113,120,127,134],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7CMNYXQNW14ST64EYEEZ5V5","unity-web-release","Ship a WebGL\u002FWebGPU build: shrink the download, Brotli server headers, Safari and iPhone memory.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-web-release\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7CMNTHD1EA70CCJ2F9FN3HT","unity-vivox","Vivox voice and text chat: channels, positional voice, mute and push-to-talk, mic permission.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-vivox\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7CMNPHPRQZ7K1FES2953DRQ","unity-urp-migration","Migrate a Built-in project to URP, or fix a half-moved one: pink materials, PPv2, old shaders.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-urp-migration\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7CMNJ756DK4V0D50HMAZYQW","unity-ui-ugui","Canvas UI (uGUI): CanvasScaler, RectTransform anchors, Layout Groups, ScrollView, UI built from C#.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-ugui\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7CMNDESZN79EK5FRDXCA2WA","unity-ui-toolkit","UI Toolkit (UXML, USS, UIDocument): flex layout, binding, custom elements, editor windows.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M7CMN8GBV07K0YCY07BJ6A1W","unity-ugs","Unity Gaming Services API: which package, init and sign-in order, Cloud Save, Cloud Code, Remote Config.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ugs\u002FSKILL.md",[],[]]