Skip to main content

unity-2d-development

Build and modify Unity 2D games through Unity MCP. Use for sprites and sprite import settings, 2D cameras, orthographic framing, 2D physics, Rigidbody2D and Collider2D behavior, joints, sorting layers, tile or grid-based levels, 2D animation, parallax, pixel-art rendering, and 2D gameplay prototypes such as platformers, top-down games, puzzles, and shooters.

Informations de source

Dépôt
pirate-608/dsh-multi-tools
Dernière activité de la source
14 août 2026 à 14:49
Langue détectée de SKILL.md
anglais
Étoiles
1
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
unity-2d-development
description
Build and modify Unity 2D games through Unity MCP. Use for sprites and sprite import settings, 2D cameras, orthographic framing, 2D physics, Rigidbody2D and Collider2D behavior, joints, sorting layers, tile or grid-based levels, 2D animation, parallax, pixel-art rendering, and 2D gameplay prototypes such as platformers, top-down games, puzzles, and shooters.
# Unity 2D Development Build a playable 2D slice, then verify behavior and framing in the live Editor. ## Workflow 1. Read editor state, project info, active scene hierarchy, and the active camera. 2. Confirm coordinate convention, pixels-per-unit, reference resolution, and whether the project is pixel-perfect. 3. Inspect existing sprites, sorting layers, colliders, Rigidbody2D components, and input approach. 4. Implement in thin vertical slices: environment, player motion, collision, camera, feedback, then UI. 5. Use `mcp__unity__manage_texture` for generated placeholder sprites and importer settings; preserve real art assets. 6. Use `mcp__unity__manage_gameobject` and `mcp__unity__manage_components` for scene objects. Use `mcp__unity__manage_physics(..., dimension="2d")` for matrices, materials, joints, casts, overlap checks, forces, and validation. 7. Use script tools for mechanics. After each script edit, wait for compilation and read console errors before attaching or invoking the component. 8. Enter Play mode only after the scene is saved. Test the requested loop, stop Play mode, and save Game View or Scene View screenshots without inline image payloads. ## 2D Design Rules - Keep gameplay on the XY plane and avoid accidental Z drift. Use Z primarily for draw ordering only when that convention already exists. - Set sprite import type, mode, pixels-per-unit, pivot, filter mode, compression, and mipmaps deliberately. Pixel art normally needs point filtering and consistent pixels-per-unit. - Prefer sorting layers and order-in-layer over ad hoc Z values. - Distinguish trigger volumes from solid colliders. Validate the 2D collision matrix before debugging scripts. - Match Rigidbody2D body type and collision detection to the motion model; do not move a dynamic body by rewriting transforms every frame. - For grid or Tilemap work without a dedicated MCP action, inspect live APIs with `mcp__unity__unity_reflect`, then use `mcp__unity__execute_code` or a project script with Undo support. Never hand-author `.unity` YAML. - Keep camera behavior deterministic: orthographic size, aspect assumptions, bounds, dead zone, and optional Cinemachine setup must be explicit. ## Playability Gate Verify no new console errors, 2D-only collision configuration, the primary Play-mode loop, saved scene state, and expected camera parameters. Return screenshot paths and mark visual hierarchy review pending unless the user confirms it or the host explicitly provides image input. For detailed examples, read the shared [workflow reference](../unity-mcp-skill/references/workflows.md) and [tool reference](../unity-mcp-skill/references/tools-reference.md) selectively.
Voir sur GitHub