/unity-dev:unity-3d-levelfrom unity-dev
Guides greyboxing 3D levels in Unity: metrics-driven blockout, modular kits, prefab architecture, terrain, spline roads, and decals. For level designers building playable collision before art.
Ships in unity-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A greybox is not a draft of the level. It is the level — its collision and its measurements, finished — with the art missing. A door is 1.2 wide because the body is 0.8, not because doors are. Art that arrives later is fitted to the blocks; the blocks are never fitted to the art. A room that is modelled first and measured afterwards is measured by the player, three weeks later, as "I keep getting stuck on that doorway".
| The situation | Read |
|---|---|
| "Block out a level"; "the runner doesn't fit through the door": the metrics sheet; blocks from primitives or ProBuilder; colour by function; the walk journey; when the greybox is done | reference/greybox.md |
| "Kit pieces don't line up", "gaps between the wall pieces": the 1/2/4 m grid size; where the pivot and the wall thickness sit; snapping; names; Blender export axes; a piece that leaves a gap | reference/modular-kit.md |
| A court, pitch or track fixed by the rules; a venue generated by a Blender script in game coordinates; collision exported as data; a one-command rebuild | reference/venue-from-scripts.md |
"The prefab override keeps coming back", "should this room be a prefab or a scene": prefab, variant or nested; root and child shape; overrides that rot; unpacking; a room as a prefab or as a scene; PrefabUtility for audits | reference/prefab-architecture.md |
Box, capsule, hull or mesh; the Collision child; the layer scheme; stairs as a ramp; what the NavMesh bake collects | reference/collision-proxies.md |
| Terrain or mesh; heightmap and control resolutions; layers, grass, trees; holes; a seeded prop scatter | reference/terrain.md |
| "Put a road along a curve", "the decal doesn't show": evaluating a spline; the runner's lane on a curve; extruded roads; the Decal Projector, its renderer feature and its cost | reference/splines-and-decals.md |
| Reach formulas, the reach table, the checking script | unity-gameplay → reference/level-metrics.md |
| Which view the room is built for; the build order of a 3D prototype | unity-gameplay → reference/genre-3d.md |
| The capsule, grounding, step offset and slope limit the sheet is derived from; the controllers | unity-3d-controller → reference/grounding-and-slopes.md |
| The jump that sets the gap and the ledge | unity-3d-controller → reference/jump-and-air.md |
| Corridor width against a camera boom; a camera through the wall | unity-camera → reference/follow-3d.md |
| Importing the model that becomes a kit piece or a prop · its class's budget, the generation preset ladder | unity-3d-models → reference/import-and-decimate.md · unity-3d-models → reference/budgets.md |
| MeshCollider rules, scaled colliders, tunnelling; collisions and triggers that misbehave | unity-physics-3d |
| A cast or a ground check that misses the level | unity-physics-3d → reference/queries.md |
| Baking the NavMesh from the proxies; runtime baking; agents, links | unity-navigation → reference/recipes.md |
| Light modes for a room of kit pieces; baking it; shadows, sky and fog | unity-lighting → reference/bake-setup.md |
| Probes for prefab rooms and moving objects | unity-lighting → reference/probes.md |
| LOD on kit pieces and props | unity-scene-optimisation → reference/lod.md |
| Occlusion, static batching, cull distances of the assembled room | unity-scene-optimisation → reference/occlusion.md |
| Which URP Renderer asset is active, for the decal feature; post-processing, renderer features, Shader Graph | unity-render-urp → reference/resolve-active-pipeline.md |
| Journeys, recorders, situations, the probe, the never-inside invariant | unity-play-harness → reference/journeys.md |
A rigged character (unity-rigged-character); a rig exported from Blender | blender-character-rig (game-assets plugin), its FBX export reference |
The order is fixed, and each step is proven before the next is paid for:
controller numbers ─► metrics sheet ─► greybox ─► walk journey ─► kit pieces ─► dressing
unity-3d-controller door 1.2 × 2.2 blocks on arrives, never on the grid, decals, props,
apex, speed, capsule step 0.3 … World inside a block same proxies lights
| Stage | Is | Proven by |
|---|---|---|
| Sheet | One row per level number, each derived from the body or the jump | level_metrics.py exits 0 |
| Greybox | Blocks at the sheet's numbers, coloured by function; their colliders are the level's colliders | The walk journey passes, and its break switches fail it |
| Kit | Pieces on a 1/2/4 m grid, pivot at a floor corner, one proxy each | KitAudit prints "ok": true |
| Assembly | Prefab instances with no stray overrides | PrefabOverrideAudit prints "ok": true; the same journey still passes |
unity-gameplay → scripts/level_metrics.py with the controller's numbers
and --integrator exact, then --door, --step, --gap, --ceiling; the ledge's
--height in a run of its own, since beside --gap it means a higher landing. Exit 1 names
the row that left reach.World layer, then build: Tools/Unity Dev/3D Level/Build Gate-Room Greybox
reports the blocks and every number that disagrees with the body, and waits.GreyboxMetrics m = GreyboxMetrics.GateRoom; // the sheet, as defaults
Debug.Log(GreyboxBuilder.Plan(m)); // read it
GameObject room = GreyboxBuilder.Build(m); // then build
templates/GreyboxJourneyTest.cs, which builds its own blocks and a
minimal CharacterController walker:| Test | Asserts |
|---|---|
Walk_PassesTheDoor_ClimbsTheStepAndTheRamp_AndArrives | Arrival on the ledge; JourneyAsserts.NeverInside on the block layer reports nothing; planar speed under the run speed; never off the ground for more than 5 samples |
Door_AdmitsOneAndAHalfBodyWidths | A capsule 1.5 bodies wide in the doorway overlaps nothing |
GREYBOX_JOURNEY_BREAK=door, =step and =ramp each stop the
walk and name where. A journey nobody has seen fail proves nothing.Files. Everything under resources/Editor/ goes in an Editor folder; menus sit under
Tools/Unity Dev/3D Level/. No file depends on another skill's C# except the journey.
| File | Does | Needs |
|---|---|---|
resources/Editor/GreyboxBuilder.cs | Builds the gate room from GreyboxMetrics with primitives; reports first | Nothing |
resources/Editor/GreyboxBuilderProBuilder.cs | The same room as editable ProBuilder meshes, the ramp a wedge. A separate file, so the first compiles without the package | com.unity.probuilder |
resources/Editor/KitAudit.cs | Read-only JSON per kit prefab: size against the grid, pivot offset from the floor corner, scale, colliders | Nothing |
resources/Editor/PrefabOverrideAudit.cs | Read-only JSON: instances in the open scene with overrides, by kind | Nothing |
resources/Editor/CollisionProxyBuilder.cs | Adds a box, a capsule or convex hulls on a Collision child; reports first | Nothing |
resources/SplineLane.cs | Distance and lane → world pose along a SplineContainer | com.unity.splines |
templates/GreyboxJourneyTest.cs | The walk journey; PlayMode test assembly with the harness and RunInput.cs | com.unity.test-framework |
World. Greybox blocks, proxies and terrain. Every ground
check, camera boom, sight ray and NavMesh bake names it; render meshes carry no collider.Collision child;
stairs collide as a ramp; a MeshCollider only for large static ground, on a mesh made for it.(1,1,1).
Never scale a piece to close a gap — the gap is a piece that broke the contract.Model child, Collision child. The root is never scaled; art is swapped
by replacing Model; a kit piece carries no gameplay.The table at the top routes the neighbours. Also not here:
| Not here | Go to |
|---|---|
| 2D levels, tilemaps, cell boards | unity-2d-level, unity-tilemap, unity-2d-grid |
| Frame cost of a dressed room | unity-profiling |
| Finding what uses a prefab | unity-search |
Running the audits headless (BatchAudit.Run, exit 0/2/3) | unity-cli → reference/batch-audit.md |
What a switch does when used, how a sentry decides to chase and how rooms are loaded are the
game's own code: the level gives them a pedestal on the grid, a post, a NavMesh baked from
World, and a room that is either a prefab or a scene.
reference/collision-proxies.md (opens in a new tab)reference/greybox.md (opens in a new tab)reference/modular-kit.md (opens in a new tab)reference/prefab-architecture.md (opens in a new tab)reference/splines-and-decals.md (opens in a new tab)reference/terrain.md (opens in a new tab)reference/venue-from-scripts.md (opens in a new tab)resources/Editor/CollisionProxyBuilder.cs (opens in a new tab)resources/Editor/GreyboxBuilder.cs (opens in a new tab)resources/Editor/GreyboxBuilderProBuilder.cs (opens in a new tab)resources/Editor/KitAudit.cs (opens in a new tab)resources/Editor/PrefabOverrideAudit.cs (opens in a new tab)resources/SplineLane.cs (opens in a new tab)templates/GreyboxJourneyTest.cs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tipoli5890/game-studio --plugin unity-dev51 skills in this plugin
/unity-2d-animationSkeletal 2D characters: PSB rig, bones and weights, sprite swaps, 2D IK (2D Animation package)./unity-2d-controllerMove a 2D character: platformer jump, slopes, coyote time, moving platforms, top-down movement./unity-2d-gridGrid tactics and tile puzzles, hex or square: move range, A* paths, line of sight, turns, undo./unity-2d-level2D level layout as data: Tiled/LDtk import, rooms, endless chunks, seeded levels, jump reachability.