unity-2d-animation
БесплатноБез исполняемых скриптовНе проверенUnity 2D Animation — sprite sheet frame-by-frame, skeletal 2D animation (bones + skinning + IK), PSD Importer, Aseprite Importer, Sprite Library / Resolver…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Unity 2D Animation
Two animation styles
| Style | When |
|---|---|
| Frame-by-frame | Distinct hand-drawn frames. Cheap, retro feel. |
| Skeletal (bones + skinning) | Smooth, fewer assets, easier to retarget across characters of similar rig. Use com.unity.2d.animation. |
You can mix: skeletal for body + sprite swap for facial expressions.
Frame-by-frame
Sprite Mode = Multiple → Sprite Editor → Slice (Grid by Cell Size or Automatic)
Drag the resulting sprite sequence into Animation window → Unity creates an Animator + clip.
Loop time: ON for idle/walk; OFF for one-shots (attack hit).
Sample Rate: 12 fps for retro; 24 fps for smoother.
Skeletal 2D
Required packages: com.unity.2d.animation + com.unity.2d.psdimporter (or Aseprite).
Workflow:
- Author character with each part on its own layer in Photoshop (
.psb) or Aseprite. - Import → PSD/Aseprite Importer creates a multi-sprite asset; Mosaic + Character Rig ON.
- Open the prefab → Sprite Editor → Skinning Editor.
- Add bones (root, spine, head, arm_L, arm_R, leg_L, leg_R).
- Auto-Geometry creates mesh; Auto-Weight skins vertices to bones (review/repaint with brush as needed).
- Drag the prefab into a scene → it has a
SpriteSkinper part. - Animation window → record bone Transform changes; Animator state machine drives clips.
IK (com.unity.2d.animation)
For arms/legs: add Limb Solver 2D (two-bone IK) on the IK Manager:
ChainSize = 2 (upper + lower arm)
Target = empty Transform you move; the limb chain follows it
Procedural foot placement, mouse-aim arms — both classic IK use cases.
Sprite Library / Resolver
For runtime outfit swaps without re-skinning:
- Create a Sprite Library Asset with categories (
Hair,Torso,Legs) and labels per category. - On each body part GameObject, replace
SpriteRenderer.spritewith SpriteResolver referencing a category+label. - At runtime, change
SpriteResolver.SetCategoryAndLabel(category, label)→ swaps sprite without losing skinning.
PSD Importer
Settings to know:
Texture Type Sprite (2D and UI)
Sprite Mode Multiple
Mosaic ON (packs each layer into the atlas)
Character Rig ON (creates a bone-rigged prefab)
Use Layer Group ON (preserves PSD group structure as bone hierarchy)
PPU match project-wide PPU
Re-import after a PSD edit → bones + sprites stay in sync; skin weights are preserved.
Aseprite Importer
Same idea but native Aseprite (.ase/.aseprite) workflow — preserves layer groups, pivots, and animation tags (importing as separate AnimationClips automatically).
Use .aseprite for pixel-art characters; .psb for hi-res / hand-drawn.
AI-assisted animation (the hard part of AI sprite gen)
Generating a single sprite is mostly solved; generating a coherent 8-frame walk cycle, 4-directional turn, or attack-with-trail animation is still where most AI tools fail. As of 2026 only one tool produces directly-usable animation end-to-end inside an Aseprite-friendly workflow.
The current state of play
| Tool | Walk cycle | 4/8-directional | Skeleton anim | Cost | Pipeline into Unity |
|---|---|---|---|---|---|
| PixelLab (pixellab.ai) | Yes — best in class | Yes (4/8 dir rotations from a single sprite) | Yes (skeleton-based + text-to-anim) | $10–50/mo | Aseprite extension → export sprite sheet → Unity Animation clip |
| Retro Diffusion (astropulse.itch.io/retrodiffusion) | No (local) | No | No | $65 one-time | Static frames only — animate manually in Spine / Unity 2D Animation |
| Scenario.com custom character model | Pose-consistent frames, manual sheet assembly | Via reference images | No | $30/mo (Pro) | Unity plugin → frames → assemble manually |
| Spine + AI character (manual rig) | N/A — you rig it | Via blend trees | Yes (industry standard) | Spine $69+ one-time | spine-unity package → SkeletonAnimation component |
| AutoSprite / Spritesheets.AI / Ludo.ai | Preset moveset only | No | No | Various | Demo-grade; hand-fix for shipping |
Recommended workflow
For simple multi-direction characters (top-down RPG, action):
- Generate full set in PixelLab → export sprite sheet → import into Unity, slice in Sprite Editor → create Animation clips (Idle / Walk / Run / Attack) per direction → Animator with float
MoveX,MoveYparameters + blend tree. See "Frame-by-frame" section above for the clip mechanics.
For metroidvania / detailed side-scroller characters:
- Generate base character in Retro Diffusion (or Aseprite-painted) → import into Unity 2D Animation as multi-sprite (Mosaic ON, Character Rig ON via PSD/Aseprite Importer, see PSD Importer section) → rig bones manually in Skinning Editor → Auto Weights → animate clips by keying bone Transforms. AI handles the art; you handle the rig.
**For high-end / signature ch
Установить unity-2d-animation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл unity-2d-animation?
Unity 2D Animation — sprite sheet frame-by-frame, skeletal 2D animation (bones + skinning + IK), PSD Importer, Aseprite Importer, Sprite Library / Resolver for character variants. USE WHEN: animating characters/enemies, swapping outfits, IK for arms/legs, importing layered art (PSB/PSD/Aseprite), 2D rigging. DO NOT USE FOR: tilemap animation (use `unity-2d-tilemap` Animated Tile); 3D character animation (use `unity-physics-anim`); UI animations (use `unity-input-ui`).
Как установить скилл unity-2d-animation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-2d-animation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic