/unity-dev:unity-urp-migrationfrom unity-dev
Migrates Unity projects from Built-in to URP or fixes half-migrated projects with pink materials, PPv2 issues, or old shaders. Covers five phases from inspection through lighting.
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.
Whether a migration is finished is a property of the saved project, not of the converter log. Four separate traps let this migration report success while the project still renders the old way, and each of them is invisible to every check except re-reading what was written. And nothing mutates — no package, no assignment, no material, no scene — until a rollback point has been confirmed out loud.
| Symptom | Go to |
|---|---|
| "Migrate / upgrade this project to URP" | §1, starting at Phase 0 |
| "Everything went pink or magenta after switching to URP" | reference/material-conversion.md — incomplete material conversion |
| Not magenta, but white or untextured | reference/material-conversion.md — the snapshot and restore steps |
| "My Standard materials became 2D/Mesh2D-Lit-Default" | reference/material-conversion.md §trap |
| "The Render Pipeline Converter ran but it still looks Built-in" | §3 trap 1 — check Graphics settings and every quality tier; resolver in unity-render-urp → reference/resolve-active-pipeline.md |
Convert PPv2 / PostProcessVolume to a URP Volume; post-processing vanished | reference/ppv2-to-volumes.md |
| Scene is blown out or far too dark | reference/ppv2-to-volumes.md (two stacks running) before reference/lighting-and-probes.md |
| Lightmaps look blown out after URP; probes look wrong | reference/lighting-and-probes.md |
GrabPass, OnRenderImage, a surface shader (#pragma surface), SetReplacementShader no longer work | reference/shader-migration.md |
| "Which quality settings moved into the URP asset?" — shadow distance, MSAA, HDR | reference/migration-phases.md §quality map |
| The pass stopped right after the package installed | §1 — that is a phase boundary; resume, do not restart |
| A 2D project | §2, path B — a different renderer and a different upgrader set |
unity status shows no row and no error | reference/execution-and-report.md §4, the floor trap |
| Before-and-after pictures wanted | resources/Editor/SceneCapture.cs |
| Phase | Work | Gate | Scripts |
|---|---|---|---|
| 0 · Inspect | Pipeline at Graphics settings and at every tier; packages; risk grep; old post-processing found by component type; materials bucketed; lighting state | A report and a confirmed rollback point | resources/Editor/MigrationAudit.cs |
| 1 · Pipeline + materials | Install or reuse URP; asset and renderer; assign at Graphics and every tier; snapshot → convert → restore → verify | GetRenderPipelineAssetAt(i) right on every tier; every converted material's shader.name matches its mapped target; every material that had _MainTex has a non-null _BaseMap | resources/Editor/PipelineAssignment.cs · resources/Editor/MaterialConverter.cs |
| 2 · Post-processing | Persisted VolumeProfile; scene Volume.sharedProfile; camera post-processing on; legacy components disabled | After a reload, components are non-null; the saved scene references the profile; legacy components re-query as disabled with the scene saved clean | resources/Editor/VolumeMigration.cs |
| 3 · Lighting + probes | Identify a stale bake; scene references a URP .lighting; rebake or declare partial; probe settings on the asset | Saved scene points at the .lighting; bake evidence or an explicit partial; m_ReflectionProbeBlending: 1 in the asset text | resources/Editor/LightingMigration.cs |
| 4 · Validate + report | Save, reload, re-query; capture; console; wording | Every gate above passes | resources/Editor/MigrationGate.cs · resources/Editor/SceneCapture.cs |
Package installs, domain reloads and bakes are phase boundaries. When one interrupts the pass, resume from the first gate that did not pass — never from the beginning, because reinstalling a package and reconverting converted materials is how a migration loses an afternoon. The rollback confirmation covers the whole trip; ask again only when a genuinely new expensive or destructive step arrives.
Full phase detail, the converter table, the resume checklist and the quality-settings map:
reference/migration-phases.md.
Confirm the rollback point in words — a branch, a copy, a tag, or "this is a throwaway clone". Mutation starts at the package install, because a project with URP assigned and materials unconverted renders magenta, and that is not a state to leave someone in while asking about backups.
Engine upgrade first, pipeline second when the project is also moving Unity versions. Two migrations at once means every later symptom has two candidate causes.
Detect in two places, always. The project default is GraphicsSettings.defaultRenderPipeline;
the tiers are a loop over QualitySettings.names reading GetRenderPipelineAssetAt(i). A
project can be switched at one and not the other, and the one that is wrong is the one nobody
looked at.
There is no SetRenderPipelineAssetAt. Writing a tier means SetQualityLevel(i), then
QualitySettings.renderPipeline = asset, then restoring the original level. An invented setter
assigns nothing and reports nothing.
Detecting HDRP means stopping: explain that this is a different pipeline with different Volume components and different renderer plumbing, and that nothing here transfers.
Then pick the path: A standard 3D · B 2D, which needs the 2D renderer and the 2D upgrader container · C selected materials only, on a project already on URP · D troubleshooting an attempt that already happened · E plan only, changing nothing.
1 · Assigned at Graphics settings, not at the tiers. A tier reading {fileID: 0} inherits
the project default, which is legal — but say it is a choice rather than reporting "all tiers
migrated". A tier pointing at a different asset is worse: that is a second pipeline the
project ships with, and it renders on whichever platforms select that tier.
2 · Converted, not magenta, and wrong. Both the 2D and the 3D upgrader providers claim
Standard at equal priority, so a plain Standard material can land on a 2D shader in a 3D
project with nothing logged. Separately, changing a shader without a snapshot leaves _BaseMap
null and _BaseColor white while every property reads back cleanly. Read shader.name and
_BaseMap back after every conversion, whatever route ran.
3 · The empty profile asset. VolumeProfile.Add<T>(true) creates the override object but
does not make it a sub-asset. Without AssetDatabase.AddObjectToAsset the profile reloads as
components: [] or {fileID: 0} entries. And SaveAssets() writes the profile but not the
scene that references it — that needs MarkSceneDirty plus SaveScene.
4 · Lighting that is still Built-in. Old lightmaps and the lighting data asset are live
data, not history; they keep lighting the scene until something clears them.
Lightmapping.Clear() is not evidence until the scene is saved and re-read. "Probes refreshed"
needs a bake result, not an intention.
reference/execution-and-report.md§4 driving the passes through the CLI and a live Editor, and the floor trap where unity status
shows no row and no error; §5 matching the report's wording to the gate that passed.
| The situation | Read |
|---|---|
| Running an actual migration, or resuming one | reference/migration-phases.md |
| Materials: magenta, white, 2D-shader hijack, particles, foliage | reference/material-conversion.md |
| The old post-processing stack, empty profiles, double post-processing | reference/ppv2-to-volumes.md |
| Lightmaps, a stale bake, reflection probes, exposure balance | reference/lighting-and-probes.md |
Custom shaders, GrabPass, OnRenderImage, replacement shaders | reference/shader-migration.md |
Volume API, parameter defaults, types and ranges, overrideState, grade presets, the five-switch pre-flight | unity-render-urp |
| Which pipeline is actually in force, including per-tier and per-platform | unity-render-urp → reference/resolve-active-pipeline.md |
| Porting a full-screen effect onto a project already on Render Graph; reviewing a renderer feature | unity-render-urp → reference/render-graph-review.md |
sharedProfile versus profile, and undo from eval | unity-render-urp → reference/volume-templates.md |
| Reaching the Editor at all; installing CLI, editors, licences; the command catalog | unity-cli |
| Reading the command envelope; a confirm gate; screenshots and logs | unity-debug → reference/editor-control.md |
| "It got slower after the migration" — numbers across the change | unity-profiling |
| A 2D project's camera, upscaling and pipeline detection | unity-2d-pixel-perfect |
SaveAssets is not SaveScene. Assets and scenes persist by different calls, and the
half that was skipped reads correctly until the Editor closes.shader.name after every conversion, converter or manual. It is the only check that
catches a material that converted onto the wrong target.Packages/ or Library/PackageCache/. Local copy,
or manual follow-up.Assets/ — a PNG in the project becomes an
imported asset somebody has to clean up.| Not here | Go to |
|---|---|
| Post-processing that will not appear on a project already on URP | unity-render-urp |
| Volume parameters and grades, Render Graph review, the CLI, on-screen verification, frame-time cost, 2D upscaling | the handoff rows of the table above |
| Sprite import, atlases and tilemaps in their own right | unity-2d-sprites · unity-sprite-atlas · unity-tilemap |
Shading maths stays out. This skill decides how a shader should be ported and what evidence proves it landed; it does not decide what the shader should compute. HDRP stays out in both directions — neither migrating to it nor away from it.
reference/execution-and-report.md (opens in a new tab)reference/lighting-and-probes.md (opens in a new tab)reference/material-conversion.md (opens in a new tab)reference/migration-phases.md (opens in a new tab)reference/ppv2-to-volumes.md (opens in a new tab)reference/shader-migration.md (opens in a new tab)resources/Editor/LightingMigration.cs (opens in a new tab)resources/Editor/MaterialConverter.cs (opens in a new tab)resources/Editor/MigrationAudit.cs (opens in a new tab)resources/Editor/MigrationGate.cs (opens in a new tab)resources/Editor/PipelineAssignment.cs (opens in a new tab)resources/Editor/SceneCapture.cs (opens in a new tab)resources/Editor/VolumeMigration.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.