[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMMZQCWWT8SF3YRQ15ZSH9":3,"skill-same:01M7CMMZQCWWT8SF3YRQ15ZSH9":94},{"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},"01M7CMMZQCWWT8SF3YRQ15ZSH9","unity-sprite-atlas",null,"Sprite Atlas from script: packing, the V2 API, variants, build-time generation, Addressables.","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-sprite-atlas\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-sprite-atlas\ndescription: >-\n  Sprite Atlas from script: packing, the V2 API, variants, build-time generation, Addressables.\n---\n\n# unity-sprite-atlas — an atlas can look finished and pack nothing\n\n> **`SpritePackerMode.Disabled` is the zero value of the enum.** So a project where nobody ever\n> opened that setting has packing off, and an atlas authored there saves, imports, appears in the\n> Project window and lists its sprites — while producing no packed texture at all. Nothing in the\n> workflow errors. Everything else in this skill is wasted effort until\n> `EditorSettings.spritePackerMode` is set **and read back**.\n\n## Symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| Sprites that should share a draw call and do not; atlas asset exists, no texture is ever produced, sprites still load one by one | §1 |\n| The Inspector says atlas packing is disabled | §1 |\n| Editor script will not compile: `SpriteAtlas` has no `Add`, `GetPackables`, `SetTextureSettings` | §2 |\n| `new SpriteAtlas()` rejected, or a loaded `SpriteAtlas` will not take settings | §2 |\n| Importer settings assigned and nothing changed on disk | §3 — the struct copy, then `SaveAndReimport()` |\n| `format = (int)TextureImporterFormat.…` does not compile | §3, `reference\u002Fcommon-errors.md` |\n| A mobile format was assigned and the platform will not take it (PVRTC) | §3, `reference\u002Fcommon-errors.md` |\n| `PackAtlases` rejects the array you hand it | `reference\u002Fcommon-errors.md` |\n| An atlas search picks up assets from `Packages\u002F` | `reference\u002Fcommon-errors.md` |\n| Atlases go stale unless somebody remembers to click a menu item | §4 |\n| Shipping atlases in the player versus loading them through Addressables | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §5 |\n| `GetSprite` returns null on an atlas the game loaded itself | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §5 — the callback registered too late |\n| `SetMasterAtlasPath` does not exist | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §6 |\n| A half-resolution variant: a lower-resolution build from the same sources | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §6 |\n| The packer will not produce the layout the tooling downstream expects | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §7 |\n\n> **Report, then wait.** Generating atlases writes new assets, rewrites importer settings and\n> forces reimports across the art folder. Survey what exists, state which atlases you would create\n> or reconfigure and with what values, and wait for confirmation before applying. Connecting to a\n> live Editor: `unity-debug` → `reference\u002Feditor-control.md`.\n\n## 1. Turn packing on, then prove it took\n\nThe full enum:\n\n```\nDisabled, BuildTimeOnly, AlwaysOn, BuildTimeOnlyAtlas, AlwaysOnAtlas,\nSpriteAtlasV2, SpriteAtlasV2Build\n```\n\n`Disabled` is `0`; the four values after it belong to the V1 packer. New work uses one of the two V2\nvalues: write `SpriteAtlasV2` unless the project has a stated reason to defer packing to build.\n\nRead it before writing it. Assigning this property rewrites the tracked file\n`ProjectSettings\u002FEditorSettings.asset`, so a survey pass only reads:\n\n```csharp\nreturn UnityEditor.EditorSettings.spritePackerMode.ToString();   \u002F\u002F survey: read only\n```\n\n```csharp\nvar before = UnityEditor.EditorSettings.spritePackerMode;        \u002F\u002F fix: only if it is not V2 yet\nif (before != UnityEditor.SpritePackerMode.SpriteAtlasV2 &&\n    before != UnityEditor.SpritePackerMode.SpriteAtlasV2Build)\n    UnityEditor.EditorSettings.spritePackerMode = UnityEditor.SpritePackerMode.SpriteAtlasV2;\nreturn $\"{before} -> {UnityEditor.EditorSettings.spritePackerMode}\";\n```\n\n> **A write you did not read back proves nothing.** Report both values — the one that was there and\n> the one that came back — not the value you assigned. If the read fails, say the mode is unknown\n> rather than assuming the write landed — the failure this section exists for is a silent no-op.\n\nA project may already carry `SpriteAtlasV2` (integer `5`) — you cannot tell a configured project\nfrom an unconfigured one without looking, and the unconfigured one quietly breaks.\n\nDo not hand-edit `ProjectSettings\u002FEditorSettings.asset` or an atlas `.meta`: the setting is one\nproperty assignment away, and the file format is not a contract.\n\n## 2. Editor and runtime are two disjoint APIs\n\nV2 splits atlas authoring from atlas use across the Editor\u002Fruntime boundary, enforced by which type\ncarries which member — not by an error message that explains itself. Both halves ship in the Editor\ninstall (`UnityEditor.CoreModule` and `UnityEngine.CoreModule`): there is no package to add.\n\n| Job | Type | Namespace | Instance surface |\n|---|---|---|---|\n| Author content | `SpriteAtlasAsset` | `UnityEditor.U2D` | `Add`, `Remove`, `SetIsVariant`, `isVariant`, `SetMasterAtlas`, `GetMasterAtlas`, `SetScriptablePacker`, plus static `Save` \u002F `Load` |\n| Configure it | `SpriteAtlasImporter` | `UnityEditor.U2D` | `variantScale`, `includeInBuild`, `packingSettings`, `textureSettings`, `GetPlatformSettings`, `SetPlatformSettings` (an `AssetImporter`, so `SaveAndReimport()` too) |\n| Preview packing | `SpriteAtlasUtility` | `UnityEditor.U2D` | `PackAllAtlases`, `PackAtlases`, `CleanupAtlasPacking` |\n| Read packed sprites | `SpriteAtlas` | `UnityEngine.U2D` | `spriteCount`, `tag`, `isVariant`, `GetSprite`, `GetSprites`, `CanBindTo` — **that is all of it** |\n| Supply an atlas on demand | `SpriteAtlasManager` | `UnityEngine.U2D` | `atlasRequested`, `atlasRegistered`, `CreateSpriteAtlas` |\n\nFour members people reach for on `SpriteAtlasAsset` are **absent**:\n`RemoveAt`, `GetPacker`, `GetPackables`, `SetMasterAtlasPath`. Of the seventeen methods it does\ndeclare, **nine carry `[Obsolete]`** — the whole settings surface, which moved to the importer — and\nsix of those messages name importer methods that do not exist; use the importer's four properties.\nBoth enumerations and the mapping: `reference\u002Fv2-api.md`.\n\n> **`GetPackables()` is not a method on `SpriteAtlas`.** It is an extension method in\n> `UnityEditor.U2D.SpriteAtlasExtensions`, so `atlas.GetPackables()` compiles in Editor code with\n> `using UnityEditor.U2D;` and nowhere else. Its fourteen siblings there are the V1\n> authoring path — they compile, and they do not build a V2 atlas. Full list: `reference\u002Fv2-api.md`.\n\n## 3. Create, save, import, configure, reimport\n\nThe order is load-bearing: the asset has to exist on disk and be imported before an importer\nexists to configure, so authoring and configuration are two passes.\n\n```csharp\nvar asset = new UnityEditor.U2D.SpriteAtlasAsset();\nasset.Add(sprites);                                              \u002F\u002F UnityEngine.Object[]\nUnityEditor.U2D.SpriteAtlasAsset.Save(asset, path);\nUnityEditor.AssetDatabase.ImportAsset(path);                     \u002F\u002F now an importer exists\n\nvar importer = UnityEditor.AssetImporter.GetAtPath(path) as UnityEditor.U2D.SpriteAtlasImporter;\nif (importer == null) throw new System.Exception($\"no SpriteAtlasImporter at {path}\");\n\nvar tex = importer.textureSettings;      \u002F\u002F struct copy — edit the local\ntex.filterMode      = UnityEngine.FilterMode.Bilinear;\ntex.generateMipMaps = false;\nimporter.textureSettings = tex;          \u002F\u002F …and assign it back, or nothing happened\n\nvar pack = importer.packingSettings;\npack.padding             = 4;\npack.enableAlphaDilation = true;\nimporter.packingSettings = pack;\n\nimporter.includeInBuild = true;\nimporter.SaveAndReimport();              \u002F\u002F nothing persists without this\n```\n\n- **`textureSettings` and `packingSettings` are struct properties** — take a local, edit it,\n  assign it back, as above. Members, with `maxTextureSize` read-only: `reference\u002Fv2-api.md`.\n- **`TextureImporterPlatformSettings.format` is a property typed `TextureImporterFormat`**, not\n  an `int` field — delete the cast, never widen it: `reference\u002Fcommon-errors.md` §1.\n- **Pack only sprites under `Assets\u002F`** — package and built-in textures are read-only imports\n  nothing downstream can reimport, so filter on the path: `reference\u002Fcommon-errors.md` §5.\n- **The file extension is `.spriteatlasv2`**, per the package documentation — confirm it on the\n  first asset you create.\n\n## 4. Generate on build, not from a menu\n\nAn atlas whose contents are decided by a folder or a naming rule should be regenerated by the\nbuild, through `IPreprocessBuildWithReport`. A `[MenuItem]` generator is one extra way to ship a\nstale atlas: it is correct exactly until somebody adds art and builds without clicking.\n\n`resources\u002FEditor\u002FAtlasBuildGenerator.cs` is the runnable shape: it corrects the packer mode only when it\nis not already a V2 value, rebuilds one atlas per rule, configures the importer, and optionally\nregisters the results with Addressables — adapt its rules, not its scaffolding. The one build that\nwrites the mode rewrites the tracked `ProjectSettings\u002FEditorSettings.asset`; commit the new value\nrather than reverting it.\n\nReserve a menu entry for a human choosing the layout — a hand-tuned arrangement, or an\nEditor preview while authoring — under `Tools\u002FUnity Dev\u002F…`, clear of a project's own menus.\n`SpriteAtlasUtility.PackAtlases` and `PackAllAtlases` pack for preview: wrap either in\n`try\u002Ffinally` and call `CleanupAtlasPacking()` in the `finally`, so a cancelled or thrown pack does\nnot leave temporary state behind.\n\n## 5–7. Delivery, variants, custom packing → `reference\u002Fdelivery-variants-packing.md`\n\n§5 inside the player or late-bound through Addressables, and the `atlasRequested` callback that\nregisters too late; §6 variants and the half-resolution build; §7 a custom packer for a layout the\nbuilt-in one will not produce. Same numbering there.\n\n## Scope — what this skill does NOT do\n\nSlicing a sheet, sprite rects, pivots, 9-slice borders and outlines are `unity-2d-sprites` — this\nskill starts from sprites that already exist and only decides how they are packed and delivered.\n\nPoint filtering, mipmap and upscaling decisions for pixel art belong to `unity-2d-pixel-perfect`;\nthis skill sets `filterMode` and `generateMipMaps` to whatever you ask, with no opinion on which\nsuits an art style.\n\nDownload size and texture budget for a shipping build are `unity-web-release` and\n`unity-android-release` — atlas format and max size are one input to those, not the whole answer.\nAddressables as a content-delivery strategy (groups, catalogues, remote hosting, updates) is\nlarger than §5 (`reference\u002Fdelivery-variants-packing.md`), which covers only the three pieces an atlas needs.\n\nGenerating the artwork is `codex-visual`.\n\n## Reference\n\n- [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) — §5–§7: delivery, variants, custom packing.\n- [`reference\u002Fv2-api.md`](reference\u002Fv2-api.md) — every class and member as enumerated, absent and\n  obsolete ones included.\n- [`reference\u002Fcommon-errors.md`](reference\u002Fcommon-errors.md) — the six costliest failures, each\n  with the check that settles it.\n- [`reference\u002Faddressables-delivery.md`](reference\u002Faddressables-delivery.md) — late binding end to\n  end.\n- `resources\u002FEditor\u002F`: `AtlasBuildGenerator.cs` (build-time generation, both delivery modes),\n  `AtlasContentBuild.cs` (the content build that pairs with it). `resources\u002F`:\n  `AtlasSupplier.cs` (the runtime supplier), `GridAtlasPacker.cs` (a grid packer and the shape of\n  a custom one), `MultiPagePacker.cs`, `SizeOptimizedPacker.cs` (two more layouts) and\n  `PackerValidation.cs` (a packer checking its own output).\n","# unity-sprite-atlas — an atlas can look finished and pack nothing\n\n> **`SpritePackerMode.Disabled` is the zero value of the enum.** So a project where nobody ever\n> opened that setting has packing off, and an atlas authored there saves, imports, appears in the\n> Project window and lists its sprites — while producing no packed texture at all. Nothing in the\n> workflow errors. Everything else in this skill is wasted effort until\n> `EditorSettings.spritePackerMode` is set **and read back**.\n\n## Symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| Sprites that should share a draw call and do not; atlas asset exists, no texture is ever produced, sprites still load one by one | §1 |\n| The Inspector says atlas packing is disabled | §1 |\n| Editor script will not compile: `SpriteAtlas` has no `Add`, `GetPackables`, `SetTextureSettings` | §2 |\n| `new SpriteAtlas()` rejected, or a loaded `SpriteAtlas` will not take settings | §2 |\n| Importer settings assigned and nothing changed on disk | §3 — the struct copy, then `SaveAndReimport()` |\n| `format = (int)TextureImporterFormat.…` does not compile | §3, `reference\u002Fcommon-errors.md` |\n| A mobile format was assigned and the platform will not take it (PVRTC) | §3, `reference\u002Fcommon-errors.md` |\n| `PackAtlases` rejects the array you hand it | `reference\u002Fcommon-errors.md` |\n| An atlas search picks up assets from `Packages\u002F` | `reference\u002Fcommon-errors.md` |\n| Atlases go stale unless somebody remembers to click a menu item | §4 |\n| Shipping atlases in the player versus loading them through Addressables | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §5 |\n| `GetSprite` returns null on an atlas the game loaded itself | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §5 — the callback registered too late |\n| `SetMasterAtlasPath` does not exist | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §6 |\n| A half-resolution variant: a lower-resolution build from the same sources | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §6 |\n| The packer will not produce the layout the tooling downstream expects | [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) §7 |\n\n> **Report, then wait.** Generating atlases writes new assets, rewrites importer settings and\n> forces reimports across the art folder. Survey what exists, state which atlases you would create\n> or reconfigure and with what values, and wait for confirmation before applying. Connecting to a\n> live Editor: `unity-debug` → `reference\u002Feditor-control.md`.\n\n## 1. Turn packing on, then prove it took\n\nThe full enum:\n\n```\nDisabled, BuildTimeOnly, AlwaysOn, BuildTimeOnlyAtlas, AlwaysOnAtlas,\nSpriteAtlasV2, SpriteAtlasV2Build\n```\n\n`Disabled` is `0`; the four values after it belong to the V1 packer. New work uses one of the two V2\nvalues: write `SpriteAtlasV2` unless the project has a stated reason to defer packing to build.\n\nRead it before writing it. Assigning this property rewrites the tracked file\n`ProjectSettings\u002FEditorSettings.asset`, so a survey pass only reads:\n\n```csharp\nreturn UnityEditor.EditorSettings.spritePackerMode.ToString();   \u002F\u002F survey: read only\n```\n\n```csharp\nvar before = UnityEditor.EditorSettings.spritePackerMode;        \u002F\u002F fix: only if it is not V2 yet\nif (before != UnityEditor.SpritePackerMode.SpriteAtlasV2 &&\n    before != UnityEditor.SpritePackerMode.SpriteAtlasV2Build)\n    UnityEditor.EditorSettings.spritePackerMode = UnityEditor.SpritePackerMode.SpriteAtlasV2;\nreturn $\"{before} -> {UnityEditor.EditorSettings.spritePackerMode}\";\n```\n\n> **A write you did not read back proves nothing.** Report both values — the one that was there and\n> the one that came back — not the value you assigned. If the read fails, say the mode is unknown\n> rather than assuming the write landed — the failure this section exists for is a silent no-op.\n\nA project may already carry `SpriteAtlasV2` (integer `5`) — you cannot tell a configured project\nfrom an unconfigured one without looking, and the unconfigured one quietly breaks.\n\nDo not hand-edit `ProjectSettings\u002FEditorSettings.asset` or an atlas `.meta`: the setting is one\nproperty assignment away, and the file format is not a contract.\n\n## 2. Editor and runtime are two disjoint APIs\n\nV2 splits atlas authoring from atlas use across the Editor\u002Fruntime boundary, enforced by which type\ncarries which member — not by an error message that explains itself. Both halves ship in the Editor\ninstall (`UnityEditor.CoreModule` and `UnityEngine.CoreModule`): there is no package to add.\n\n| Job | Type | Namespace | Instance surface |\n|---|---|---|---|\n| Author content | `SpriteAtlasAsset` | `UnityEditor.U2D` | `Add`, `Remove`, `SetIsVariant`, `isVariant`, `SetMasterAtlas`, `GetMasterAtlas`, `SetScriptablePacker`, plus static `Save` \u002F `Load` |\n| Configure it | `SpriteAtlasImporter` | `UnityEditor.U2D` | `variantScale`, `includeInBuild`, `packingSettings`, `textureSettings`, `GetPlatformSettings`, `SetPlatformSettings` (an `AssetImporter`, so `SaveAndReimport()` too) |\n| Preview packing | `SpriteAtlasUtility` | `UnityEditor.U2D` | `PackAllAtlases`, `PackAtlases`, `CleanupAtlasPacking` |\n| Read packed sprites | `SpriteAtlas` | `UnityEngine.U2D` | `spriteCount`, `tag`, `isVariant`, `GetSprite`, `GetSprites`, `CanBindTo` — **that is all of it** |\n| Supply an atlas on demand | `SpriteAtlasManager` | `UnityEngine.U2D` | `atlasRequested`, `atlasRegistered`, `CreateSpriteAtlas` |\n\nFour members people reach for on `SpriteAtlasAsset` are **absent**:\n`RemoveAt`, `GetPacker`, `GetPackables`, `SetMasterAtlasPath`. Of the seventeen methods it does\ndeclare, **nine carry `[Obsolete]`** — the whole settings surface, which moved to the importer — and\nsix of those messages name importer methods that do not exist; use the importer's four properties.\nBoth enumerations and the mapping: `reference\u002Fv2-api.md`.\n\n> **`GetPackables()` is not a method on `SpriteAtlas`.** It is an extension method in\n> `UnityEditor.U2D.SpriteAtlasExtensions`, so `atlas.GetPackables()` compiles in Editor code with\n> `using UnityEditor.U2D;` and nowhere else. Its fourteen siblings there are the V1\n> authoring path — they compile, and they do not build a V2 atlas. Full list: `reference\u002Fv2-api.md`.\n\n## 3. Create, save, import, configure, reimport\n\nThe order is load-bearing: the asset has to exist on disk and be imported before an importer\nexists to configure, so authoring and configuration are two passes.\n\n```csharp\nvar asset = new UnityEditor.U2D.SpriteAtlasAsset();\nasset.Add(sprites);                                              \u002F\u002F UnityEngine.Object[]\nUnityEditor.U2D.SpriteAtlasAsset.Save(asset, path);\nUnityEditor.AssetDatabase.ImportAsset(path);                     \u002F\u002F now an importer exists\n\nvar importer = UnityEditor.AssetImporter.GetAtPath(path) as UnityEditor.U2D.SpriteAtlasImporter;\nif (importer == null) throw new System.Exception($\"no SpriteAtlasImporter at {path}\");\n\nvar tex = importer.textureSettings;      \u002F\u002F struct copy — edit the local\ntex.filterMode      = UnityEngine.FilterMode.Bilinear;\ntex.generateMipMaps = false;\nimporter.textureSettings = tex;          \u002F\u002F …and assign it back, or nothing happened\n\nvar pack = importer.packingSettings;\npack.padding             = 4;\npack.enableAlphaDilation = true;\nimporter.packingSettings = pack;\n\nimporter.includeInBuild = true;\nimporter.SaveAndReimport();              \u002F\u002F nothing persists without this\n```\n\n- **`textureSettings` and `packingSettings` are struct properties** — take a local, edit it,\n  assign it back, as above. Members, with `maxTextureSize` read-only: `reference\u002Fv2-api.md`.\n- **`TextureImporterPlatformSettings.format` is a property typed `TextureImporterFormat`**, not\n  an `int` field — delete the cast, never widen it: `reference\u002Fcommon-errors.md` §1.\n- **Pack only sprites under `Assets\u002F`** — package and built-in textures are read-only imports\n  nothing downstream can reimport, so filter on the path: `reference\u002Fcommon-errors.md` §5.\n- **The file extension is `.spriteatlasv2`**, per the package documentation — confirm it on the\n  first asset you create.\n\n## 4. Generate on build, not from a menu\n\nAn atlas whose contents are decided by a folder or a naming rule should be regenerated by the\nbuild, through `IPreprocessBuildWithReport`. A `[MenuItem]` generator is one extra way to ship a\nstale atlas: it is correct exactly until somebody adds art and builds without clicking.\n\n`resources\u002FEditor\u002FAtlasBuildGenerator.cs` is the runnable shape: it corrects the packer mode only when it\nis not already a V2 value, rebuilds one atlas per rule, configures the importer, and optionally\nregisters the results with Addressables — adapt its rules, not its scaffolding. The one build that\nwrites the mode rewrites the tracked `ProjectSettings\u002FEditorSettings.asset`; commit the new value\nrather than reverting it.\n\nReserve a menu entry for a human choosing the layout — a hand-tuned arrangement, or an\nEditor preview while authoring — under `Tools\u002FUnity Dev\u002F…`, clear of a project's own menus.\n`SpriteAtlasUtility.PackAtlases` and `PackAllAtlases` pack for preview: wrap either in\n`try\u002Ffinally` and call `CleanupAtlasPacking()` in the `finally`, so a cancelled or thrown pack does\nnot leave temporary state behind.\n\n## 5–7. Delivery, variants, custom packing → `reference\u002Fdelivery-variants-packing.md`\n\n§5 inside the player or late-bound through Addressables, and the `atlasRequested` callback that\nregisters too late; §6 variants and the half-resolution build; §7 a custom packer for a layout the\nbuilt-in one will not produce. Same numbering there.\n\n## Scope — what this skill does NOT do\n\nSlicing a sheet, sprite rects, pivots, 9-slice borders and outlines are `unity-2d-sprites` — this\nskill starts from sprites that already exist and only decides how they are packed and delivered.\n\nPoint filtering, mipmap and upscaling decisions for pixel art belong to `unity-2d-pixel-perfect`;\nthis skill sets `filterMode` and `generateMipMaps` to whatever you ask, with no opinion on which\nsuits an art style.\n\nDownload size and texture budget for a shipping build are `unity-web-release` and\n`unity-android-release` — atlas format and max size are one input to those, not the whole answer.\nAddressables as a content-delivery strategy (groups, catalogues, remote hosting, updates) is\nlarger than §5 (`reference\u002Fdelivery-variants-packing.md`), which covers only the three pieces an atlas needs.\n\nGenerating the artwork is `codex-visual`.\n\n## Reference\n\n- [`reference\u002Fdelivery-variants-packing.md`](reference\u002Fdelivery-variants-packing.md) — §5–§7: delivery, variants, custom packing.\n- [`reference\u002Fv2-api.md`](reference\u002Fv2-api.md) — every class and member as enumerated, absent and\n  obsolete ones included.\n- [`reference\u002Fcommon-errors.md`](reference\u002Fcommon-errors.md) — the six costliest failures, each\n  with the check that settles it.\n- [`reference\u002Faddressables-delivery.md`](reference\u002Faddressables-delivery.md) — late binding end to\n  end.\n- `resources\u002FEditor\u002F`: `AtlasBuildGenerator.cs` (build-time generation, both delivery modes),\n  `AtlasContentBuild.cs` (the content build that pairs with it). `resources\u002F`:\n  `AtlasSupplier.cs` (the runtime supplier), `GridAtlasPacker.cs` (a grid packer and the shape of\n  a custom one), `MultiPagePacker.cs`, `SizeOptimizedPacker.cs` (two more layouts) and\n  `PackerValidation.cs` (a packer checking its own output).\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-sprite-atlas",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-sprite-atlas",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-sprite-atlas",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-sprite-atlas","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002FSKILL.md",true,[46,52,56,60,64,70,74,78,82,86,90],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Faddressables-delivery.md","REFERENCE","参考文档",5897,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Freference\u002Faddressables-delivery.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fcommon-errors.md",6992,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Freference\u002Fcommon-errors.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fdelivery-variants-packing.md",4186,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Freference\u002Fdelivery-variants-packing.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fv2-api.md",10988,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Freference\u002Fv2-api.md",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"resources\u002FAtlasSupplier.cs","OTHER","其他",4420,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FAtlasSupplier.cs",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"resources\u002FEditor\u002FAtlasBuildGenerator.cs",10693,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FEditor\u002FAtlasBuildGenerator.cs",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002FEditor\u002FAtlasContentBuild.cs",2327,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FEditor\u002FAtlasContentBuild.cs",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FGridAtlasPacker.cs",6000,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FGridAtlasPacker.cs",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"resources\u002FMultiPagePacker.cs",5541,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FMultiPagePacker.cs",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"resources\u002FPackerValidation.cs",4880,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FPackerValidation.cs",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002FSizeOptimizedPacker.cs",5262,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-sprite-atlas\u002Fresources\u002FSizeOptimizedPacker.cs",[95,102,109,116,123,130],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"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":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"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":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"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":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"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":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"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":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"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",[],[]]