[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMJX4PMQMMQW1GJTSJ33XG":3,"skill-same:01M7CMJX4PMQMMQW1GJTSJ33XG":82},{"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},"01M7CMJX4PMQMMQW1GJTSJ33XG","unity-lighting",null,"3D lighting and GI on URP: bakes, light probes, reflections, shadows, a flat or black-lit scene.","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-lighting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-lighting\ndescription: >-\n  3D lighting and GI on URP: bakes, light probes, reflections, shadows, a flat\n  or black-lit scene.\n---\n\n# unity-lighting — a light's mode decides what it can ever light\n\n> **Most lighting reports are not a value to tune.** \"The bake did nothing\" and \"the character\n> is black\" are a light's Mode, a static flag or a missing probe: a Baked light does not exist\n> at runtime, a lightmap lights only the surface it is painted on, and nothing warns when\n> either leaves an object dark. Read the scene first; change one switch; read it again.\n\nURP on Unity 6, 3D scenes. Worked example: the gate room — baked walls, a Mixed sun through the\ndoorway, the runner and a sentry on probes.\n\n## Symptom → where to look (first match wins; stop at the first cause you confirm)\n\n| Symptom | Go to |\n|---|---|\n| Any lighting complaint, before touching a setting | §0 |\n| Generate Lighting finishes and the scene looks the same | §1 |\n| Lightmaps are blotchy, seamed, or black on one mesh | §1 steps 4–5 |\n| The runner is black, flat or the wrong colour beside baked walls | §2 |\n| A light affects the walls and not the character, or the reverse | §2 |\n| A fifth light, or its shadows, flicker or drop out as the camera turns | §2 — the per-object limit |\n| Metal is black; a floor reflects the sky indoors; reflections slide | §3 |\n| No shadow; stripes; a shadow detached from its caster; crawling edges | §4 |\n| Shadows end a few metres from the camera | §4 — Max Distance |\n| A point or spot light casts no shadow | §4 — additional-light shadows |\n| \"The scene looks flat\", or too dark with the lights right | §5 |\n| Changing the skybox changed nothing | §5 — ambient is baked |\n| Right in the Editor, wrong on the phone | §6 |\n| Lighting costs too much on the phone | §6 — the order to cut in |\n\n## 0. Read the scene before changing it\n\nDrop `resources\u002FEditor\u002FLightingAudit.cs` into an Editor folder and run\n`Tools\u002FUnity Dev\u002FLighting\u002FAudit Open Scene`, or `return LightingAudit.Audit();` from an eval\n(`unity-debug` → `reference\u002Feditor-control.md`). It changes nothing and prints one JSON object:\n\n| Block | Holds |\n|---|---|\n| `pipeline` | The URP asset in force and its tier, the renderer and its rendering path, light modes and limits, the probe system, the reflection-probe toggles, every shadow field |\n| `settings` | The Lighting Settings asset (or `defaults`), lightmapper, Lighting Mode |\n| `lights` | Each light's type, `mode`, `bakedAs`, shadows |\n| `static` | Renderers that contribute GI, receive lightmaps or probes, lack a second UV set |\n| `bake`, `probes` | Lightmap count and size, shadowmask, baked probe count, Adaptive Probe Volume state |\n| `reflectionProbes`, `environment` | Each probe's mode and box projection; sky, sun, ambient, fog |\n| `findings` | Named candidates: `baked-light-never-baked`, `dynamic-without-probes`, … |\n\n- **`pipeline.active` is `not-urp`**: stop. `unity-render-urp` →\n  `reference\u002Fresolve-active-pipeline.md`.\n- **Judge in the Game view.** The Scene view has its own lighting toggle.\n- **Each finding is a candidate.** Confirm it against the symptom before changing anything, and\n  restore what you change while testing.\n\n## 1. The bake changed nothing\n\nA bake needs a light that asks, a renderer that contributes, a UV set and texels. Work down.\n\n1. **No light asks.** Every light's Mode is Realtime (`Light.lightmapBakeType`). Set the lights\n   that never change to Baked and the sun to Mixed.\n2. **Nothing contributes.** No renderer has the **Contribute GI** static flag\n   (`StaticEditorFlags.ContributeGI`): `nothing-contributes-gi`. Flag the walls and floor —\n   never the gate or anything else that moves.\n3. **The mode changed after the bake.** `mode` and `bakedAs` differ, or the Lighting Mode does:\n   `light-mode-changed-since-bake`. A Mixed light with no bake renders as Realtime; a Baked one\n   lights nothing. Bake again.\n4. **Contributes, receives no texels.** Receive Global Illumination is Light Probes\n   (`MeshRenderer.receiveGI`), or Scale In Lightmap is 0. Large surfaces want\n   `ReceiveGI.Lightmaps`.\n5. **No lightmap UVs.** `contributes-gi-without-uv2`: tick Generate Lightmap UVs on the model\n   importer and Apply; a mesh built in code needs `Unwrapping.GenerateSecondaryUVSet`.\n6. **Baked Global Illumination is off**, or the scene has no Lighting Settings asset and bakes\n   with defaults nobody chose.\n7. **It baked and was not saved.** The reference to the lighting data is scene state.\n\nBake with evidence: `Tools\u002FUnity Dev\u002FLighting\u002FBake And Read Back`\n(`resources\u002FEditor\u002FBakeAndReadBack.cs`) reports the plan, waits for confirmation, bakes\nasynchronously and prints lightmap count, probe count and bake time before and after.\n`\"status\":\"baked-empty\"` means it ran and wrote nothing, with the missing input in `detail`. A\nGPU bake needs a graphics device: under `-nographics` the CPU lightmapper is the path, and the\nreport says which ran.\n\nSettings assets, UV failures, texel density, a draft and a final pair, batch baking:\n[`reference\u002Fbake-setup.md`](reference\u002Fbake-setup.md).\n\n## 2. Dynamic objects are black or unlit beside baked ones\n\n| The runner is | Cause |\n|---|---|\n| Black or flat everywhere | No baked probes: `dynamic-without-probes`. A lightmap lights only its own surface |\n| Right at spawn, wrong by the gate | No probe pair at the lighting change |\n| Unlit by one particular light | That light is Baked. Make it Mixed, or accept probes |\n| Lit differently per body part | Several renderers, several sample points: one Anchor Override (`Renderer.probeAnchor`) |\n| One flat colour along a long moving object | One sample per renderer. Adaptive Probe Volumes sample per pixel; URP has no proxy volume |\n| Unlit, with Light Probe Groups in the scene | The URP asset's Light Probe System is Adaptive Probe Volumes: `probe-groups-ignored` |\n\n- **Light Probe Groups**: two layers (0.3 and 2.0 above the floor), every 2–3 units where things\n  move, a pair either side of every lighting change, none inside geometry. Read\n  `LightmapSettings.lightProbes.count` after the bake.\n- **Mixed lights follow the Lighting Mode** (`LightingSettings.mixedBakeMode`): Baked Indirect\n  keeps direct light and shadows realtime; Shadowmask bakes static shadows; Subtractive bakes\n  direct light too and keeps one sun's shadow. Mixed Lighting must also be ticked on the URP\n  asset (`mixed-lighting-off`).\n- **A light that drops out** is Forward's Per Object Limit — 4 by default, 8 at most, plus the\n  main light. Bake the lights that never change, split the long mesh, raise the limit, or move\n  the renderer to Forward+, which has none.\n\nModes, the receive table and the limits: [`reference\u002Flight-modes.md`](reference\u002Flight-modes.md).\nPlacement, anchors and Adaptive Probe Volumes: [`reference\u002Fprobes.md`](reference\u002Fprobes.md).\n\n## 3. Reflections are wrong or missing\n\n1. **No probe encloses the object**: it reflects the environment — the sky, indoors. Add one\n   Baked Reflection Probe per room, its box matched to the walls.\n2. **The probe baked a cubemap of sky**: a Baked probe captures only objects with the\n   Reflection Probe Static flag. `baked-probe-without-texture` is one never baked at all.\n3. **Reflections slide with the camera**: Box Projection is ticked on the probe and off on the\n   URP asset (`box-projection-off-in-asset`). Lighting → Reflection Probes on the asset.\n4. **Reflections pop at a doorway**: Probe Blending is off on the asset\n   (`probe-blending-off-in-asset`); Forward blends two probes per object.\n5. **Metal is black everywhere**: the environment reflection is empty\n   (`no-environment-reflection`) — §5.\n6. **A Realtime probe costs a frame**: `EveryFrame` renders the scene six more times. Use\n   `ViaScripting` and `RenderProbe()` when the gate finishes opening.\n\nModes, the asset's three toggles, sizing and blending: [`reference\u002Fprobes.md`](reference\u002Fprobes.md).\n\n## 4. Shadows\n\nRealtime shadows are one texture stretched over Max Distance. Settings live on the URP asset the\nactive tier uses, not in Quality settings.\n\n| You see | Cause | First move |\n|---|---|---|\n| No shadow | A switch | The eight-step list in the reference: light type and mode, the asset, distance, the renderer, the material, the camera |\n| Stripes on lit surfaces (acne) | Bias under one texel | Normal Bias 1 → 1.5, then Depth Bias |\n| Shadow detached from the feet | Bias too high | Depth Bias 1 → 0.5; give thin casters thickness |\n| Edges crawl when the camera turns | Texels too large | Max Distance down (default 50), then a cascade, then resolution |\n| Shadows end at a distance | Max Distance, faded by Last Border | Raise it, or bake far shadows with Shadowmask |\n| A point or spot light casts none | Additional Lights → Cast Shadows is off by default | `additional-shadows-off`; Per Pixel or Forward+ as well |\n| The far player has no shadow under a fixed long view; split screen doubles the shadow cost | Distance too short for the view; one shadow map per camera | Per-tier table in the reference, \"A long fixed view\" |\n| A second directional casts none | Only the main light has cascades | Assign the sun as Sun Source |\n\nAll point and spot shadows share one atlas (2048); a point light takes six slices. When they do\nnot fit URP shrinks them and logs it — read the Console before raising anything.\n\nEvery field with its default, per-light settings, the atlas, the Screen Space Shadows feature and\nthe artefact table: [`reference\u002Fshadows.md`](reference\u002Fshadows.md).\n\n## 5. Flat or too dark with no light wrong\n\nAmbient light and the environment reflection come from the sky, are scene state in\n`RenderSettings`, and are **baked**: a new skybox changes neither until lighting is generated.\n\n- **Flat**: sky ambient fills every shadow. Lower `RenderSettings.ambientIntensity` to 0.5–0.8,\n  bake bounce light, turn shadows on — before adding lights.\n- **An interior lit like outdoors**: `AmbientMode.Flat` with a dark colour; let the bake and the\n  probes carry the room.\n- **Too dark with lights present**: the only light is Baked and unbaked; Main Light is Disabled\n  on the asset; the light's Culling Mask or Rendering Layers exclude the object.\n- **A runtime sky change**: `DynamicGI.UpdateEnvironment()` afterwards.\n- **An additively loaded room** takes its environment from the active scene.\n- **Dark overall with correct lighting** is exposure — `unity-render-urp`.\n\nEvery field, the sun source, fog and the ten-row checklist:\n[`reference\u002Fenvironment.md`](reference\u002Fenvironment.md).\n\n## 6. Fine in the Editor, wrong on the phone\n\n1. **Another tier, another URP asset.** The phone boots into its platform's default quality\n   tier. Select that tier and run the audit again.\n2. **A lower light limit**: 32 visible additional lights on mobile, 16 on OpenGL ES 3.0, 256\n   on desktop.\n3. **Stripped variants**: a feature off on every URP asset in the build — soft shadows,\n   additional shadows, a fog mode enabled from code — is compiled out.\n4. **Lightmap compression** blotches baked light on device only.\n5. **The lighting data never reached the build**: baked, not saved.\n\nStart a phone from: one Mixed directional, Shadowmask (Subtractive on the lowest tier), Max\nDistance 25–40 with one cascade, everything static baked, probes for the runner, no additional\nshadows. When over budget, cut additional shadows, then distance and cascades, then realtime\nlights — measuring each cut with `unity-profiling`.\n\nThe whole set, the cut order and a worked gate room:\n[`reference\u002Fmobile-subset.md`](reference\u002Fmobile-subset.md).\n\n## Scope — what this skill does NOT do\n\nLights, shadows and normal maps for sprites are `unity-2d-rendering`. Post-processing Volumes,\nexposure, tonemapping, renderer features and whether URP is the pipeline in force are\n`unity-render-urp`; moving a Built-in project to URP and the stale bake it leaves behind are\n`unity-urp-migration`. HDRP and shader authoring are out. What a light or shadow pass costs is\n`unity-profiling`; LOD, occlusion, batching and culling are `unity-scene-optimisation`. Building\nthe room is `unity-3d-level`; importing its meshes is `unity-3d-models`; reading the result on a\nreal device is `unity-device-testing`.\n","# unity-lighting — a light's mode decides what it can ever light\n\n> **Most lighting reports are not a value to tune.** \"The bake did nothing\" and \"the character\n> is black\" are a light's Mode, a static flag or a missing probe: a Baked light does not exist\n> at runtime, a lightmap lights only the surface it is painted on, and nothing warns when\n> either leaves an object dark. Read the scene first; change one switch; read it again.\n\nURP on Unity 6, 3D scenes. Worked example: the gate room — baked walls, a Mixed sun through the\ndoorway, the runner and a sentry on probes.\n\n## Symptom → where to look (first match wins; stop at the first cause you confirm)\n\n| Symptom | Go to |\n|---|---|\n| Any lighting complaint, before touching a setting | §0 |\n| Generate Lighting finishes and the scene looks the same | §1 |\n| Lightmaps are blotchy, seamed, or black on one mesh | §1 steps 4–5 |\n| The runner is black, flat or the wrong colour beside baked walls | §2 |\n| A light affects the walls and not the character, or the reverse | §2 |\n| A fifth light, or its shadows, flicker or drop out as the camera turns | §2 — the per-object limit |\n| Metal is black; a floor reflects the sky indoors; reflections slide | §3 |\n| No shadow; stripes; a shadow detached from its caster; crawling edges | §4 |\n| Shadows end a few metres from the camera | §4 — Max Distance |\n| A point or spot light casts no shadow | §4 — additional-light shadows |\n| \"The scene looks flat\", or too dark with the lights right | §5 |\n| Changing the skybox changed nothing | §5 — ambient is baked |\n| Right in the Editor, wrong on the phone | §6 |\n| Lighting costs too much on the phone | §6 — the order to cut in |\n\n## 0. Read the scene before changing it\n\nDrop `resources\u002FEditor\u002FLightingAudit.cs` into an Editor folder and run\n`Tools\u002FUnity Dev\u002FLighting\u002FAudit Open Scene`, or `return LightingAudit.Audit();` from an eval\n(`unity-debug` → `reference\u002Feditor-control.md`). It changes nothing and prints one JSON object:\n\n| Block | Holds |\n|---|---|\n| `pipeline` | The URP asset in force and its tier, the renderer and its rendering path, light modes and limits, the probe system, the reflection-probe toggles, every shadow field |\n| `settings` | The Lighting Settings asset (or `defaults`), lightmapper, Lighting Mode |\n| `lights` | Each light's type, `mode`, `bakedAs`, shadows |\n| `static` | Renderers that contribute GI, receive lightmaps or probes, lack a second UV set |\n| `bake`, `probes` | Lightmap count and size, shadowmask, baked probe count, Adaptive Probe Volume state |\n| `reflectionProbes`, `environment` | Each probe's mode and box projection; sky, sun, ambient, fog |\n| `findings` | Named candidates: `baked-light-never-baked`, `dynamic-without-probes`, … |\n\n- **`pipeline.active` is `not-urp`**: stop. `unity-render-urp` →\n  `reference\u002Fresolve-active-pipeline.md`.\n- **Judge in the Game view.** The Scene view has its own lighting toggle.\n- **Each finding is a candidate.** Confirm it against the symptom before changing anything, and\n  restore what you change while testing.\n\n## 1. The bake changed nothing\n\nA bake needs a light that asks, a renderer that contributes, a UV set and texels. Work down.\n\n1. **No light asks.** Every light's Mode is Realtime (`Light.lightmapBakeType`). Set the lights\n   that never change to Baked and the sun to Mixed.\n2. **Nothing contributes.** No renderer has the **Contribute GI** static flag\n   (`StaticEditorFlags.ContributeGI`): `nothing-contributes-gi`. Flag the walls and floor —\n   never the gate or anything else that moves.\n3. **The mode changed after the bake.** `mode` and `bakedAs` differ, or the Lighting Mode does:\n   `light-mode-changed-since-bake`. A Mixed light with no bake renders as Realtime; a Baked one\n   lights nothing. Bake again.\n4. **Contributes, receives no texels.** Receive Global Illumination is Light Probes\n   (`MeshRenderer.receiveGI`), or Scale In Lightmap is 0. Large surfaces want\n   `ReceiveGI.Lightmaps`.\n5. **No lightmap UVs.** `contributes-gi-without-uv2`: tick Generate Lightmap UVs on the model\n   importer and Apply; a mesh built in code needs `Unwrapping.GenerateSecondaryUVSet`.\n6. **Baked Global Illumination is off**, or the scene has no Lighting Settings asset and bakes\n   with defaults nobody chose.\n7. **It baked and was not saved.** The reference to the lighting data is scene state.\n\nBake with evidence: `Tools\u002FUnity Dev\u002FLighting\u002FBake And Read Back`\n(`resources\u002FEditor\u002FBakeAndReadBack.cs`) reports the plan, waits for confirmation, bakes\nasynchronously and prints lightmap count, probe count and bake time before and after.\n`\"status\":\"baked-empty\"` means it ran and wrote nothing, with the missing input in `detail`. A\nGPU bake needs a graphics device: under `-nographics` the CPU lightmapper is the path, and the\nreport says which ran.\n\nSettings assets, UV failures, texel density, a draft and a final pair, batch baking:\n[`reference\u002Fbake-setup.md`](reference\u002Fbake-setup.md).\n\n## 2. Dynamic objects are black or unlit beside baked ones\n\n| The runner is | Cause |\n|---|---|\n| Black or flat everywhere | No baked probes: `dynamic-without-probes`. A lightmap lights only its own surface |\n| Right at spawn, wrong by the gate | No probe pair at the lighting change |\n| Unlit by one particular light | That light is Baked. Make it Mixed, or accept probes |\n| Lit differently per body part | Several renderers, several sample points: one Anchor Override (`Renderer.probeAnchor`) |\n| One flat colour along a long moving object | One sample per renderer. Adaptive Probe Volumes sample per pixel; URP has no proxy volume |\n| Unlit, with Light Probe Groups in the scene | The URP asset's Light Probe System is Adaptive Probe Volumes: `probe-groups-ignored` |\n\n- **Light Probe Groups**: two layers (0.3 and 2.0 above the floor), every 2–3 units where things\n  move, a pair either side of every lighting change, none inside geometry. Read\n  `LightmapSettings.lightProbes.count` after the bake.\n- **Mixed lights follow the Lighting Mode** (`LightingSettings.mixedBakeMode`): Baked Indirect\n  keeps direct light and shadows realtime; Shadowmask bakes static shadows; Subtractive bakes\n  direct light too and keeps one sun's shadow. Mixed Lighting must also be ticked on the URP\n  asset (`mixed-lighting-off`).\n- **A light that drops out** is Forward's Per Object Limit — 4 by default, 8 at most, plus the\n  main light. Bake the lights that never change, split the long mesh, raise the limit, or move\n  the renderer to Forward+, which has none.\n\nModes, the receive table and the limits: [`reference\u002Flight-modes.md`](reference\u002Flight-modes.md).\nPlacement, anchors and Adaptive Probe Volumes: [`reference\u002Fprobes.md`](reference\u002Fprobes.md).\n\n## 3. Reflections are wrong or missing\n\n1. **No probe encloses the object**: it reflects the environment — the sky, indoors. Add one\n   Baked Reflection Probe per room, its box matched to the walls.\n2. **The probe baked a cubemap of sky**: a Baked probe captures only objects with the\n   Reflection Probe Static flag. `baked-probe-without-texture` is one never baked at all.\n3. **Reflections slide with the camera**: Box Projection is ticked on the probe and off on the\n   URP asset (`box-projection-off-in-asset`). Lighting → Reflection Probes on the asset.\n4. **Reflections pop at a doorway**: Probe Blending is off on the asset\n   (`probe-blending-off-in-asset`); Forward blends two probes per object.\n5. **Metal is black everywhere**: the environment reflection is empty\n   (`no-environment-reflection`) — §5.\n6. **A Realtime probe costs a frame**: `EveryFrame` renders the scene six more times. Use\n   `ViaScripting` and `RenderProbe()` when the gate finishes opening.\n\nModes, the asset's three toggles, sizing and blending: [`reference\u002Fprobes.md`](reference\u002Fprobes.md).\n\n## 4. Shadows\n\nRealtime shadows are one texture stretched over Max Distance. Settings live on the URP asset the\nactive tier uses, not in Quality settings.\n\n| You see | Cause | First move |\n|---|---|---|\n| No shadow | A switch | The eight-step list in the reference: light type and mode, the asset, distance, the renderer, the material, the camera |\n| Stripes on lit surfaces (acne) | Bias under one texel | Normal Bias 1 → 1.5, then Depth Bias |\n| Shadow detached from the feet | Bias too high | Depth Bias 1 → 0.5; give thin casters thickness |\n| Edges crawl when the camera turns | Texels too large | Max Distance down (default 50), then a cascade, then resolution |\n| Shadows end at a distance | Max Distance, faded by Last Border | Raise it, or bake far shadows with Shadowmask |\n| A point or spot light casts none | Additional Lights → Cast Shadows is off by default | `additional-shadows-off`; Per Pixel or Forward+ as well |\n| The far player has no shadow under a fixed long view; split screen doubles the shadow cost | Distance too short for the view; one shadow map per camera | Per-tier table in the reference, \"A long fixed view\" |\n| A second directional casts none | Only the main light has cascades | Assign the sun as Sun Source |\n\nAll point and spot shadows share one atlas (2048); a point light takes six slices. When they do\nnot fit URP shrinks them and logs it — read the Console before raising anything.\n\nEvery field with its default, per-light settings, the atlas, the Screen Space Shadows feature and\nthe artefact table: [`reference\u002Fshadows.md`](reference\u002Fshadows.md).\n\n## 5. Flat or too dark with no light wrong\n\nAmbient light and the environment reflection come from the sky, are scene state in\n`RenderSettings`, and are **baked**: a new skybox changes neither until lighting is generated.\n\n- **Flat**: sky ambient fills every shadow. Lower `RenderSettings.ambientIntensity` to 0.5–0.8,\n  bake bounce light, turn shadows on — before adding lights.\n- **An interior lit like outdoors**: `AmbientMode.Flat` with a dark colour; let the bake and the\n  probes carry the room.\n- **Too dark with lights present**: the only light is Baked and unbaked; Main Light is Disabled\n  on the asset; the light's Culling Mask or Rendering Layers exclude the object.\n- **A runtime sky change**: `DynamicGI.UpdateEnvironment()` afterwards.\n- **An additively loaded room** takes its environment from the active scene.\n- **Dark overall with correct lighting** is exposure — `unity-render-urp`.\n\nEvery field, the sun source, fog and the ten-row checklist:\n[`reference\u002Fenvironment.md`](reference\u002Fenvironment.md).\n\n## 6. Fine in the Editor, wrong on the phone\n\n1. **Another tier, another URP asset.** The phone boots into its platform's default quality\n   tier. Select that tier and run the audit again.\n2. **A lower light limit**: 32 visible additional lights on mobile, 16 on OpenGL ES 3.0, 256\n   on desktop.\n3. **Stripped variants**: a feature off on every URP asset in the build — soft shadows,\n   additional shadows, a fog mode enabled from code — is compiled out.\n4. **Lightmap compression** blotches baked light on device only.\n5. **The lighting data never reached the build**: baked, not saved.\n\nStart a phone from: one Mixed directional, Shadowmask (Subtractive on the lowest tier), Max\nDistance 25–40 with one cascade, everything static baked, probes for the runner, no additional\nshadows. When over budget, cut additional shadows, then distance and cascades, then realtime\nlights — measuring each cut with `unity-profiling`.\n\nThe whole set, the cut order and a worked gate room:\n[`reference\u002Fmobile-subset.md`](reference\u002Fmobile-subset.md).\n\n## Scope — what this skill does NOT do\n\nLights, shadows and normal maps for sprites are `unity-2d-rendering`. Post-processing Volumes,\nexposure, tonemapping, renderer features and whether URP is the pipeline in force are\n`unity-render-urp`; moving a Built-in project to URP and the stale bake it leaves behind are\n`unity-urp-migration`. HDRP and shader authoring are out. What a light or shadow pass costs is\n`unity-profiling`; LOD, occlusion, batching and culling are `unity-scene-optimisation`. Building\nthe room is `unity-3d-level`; importing its meshes is `unity-3d-models`; reading the result on a\nreal device is `unity-device-testing`.\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-lighting",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-lighting",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-lighting",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-lighting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002FSKILL.md",true,[46,52,56,60,64,68,72,78],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fbake-setup.md","REFERENCE","参考文档",10431,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Fbake-setup.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fenvironment.md",7726,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Fenvironment.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Flight-modes.md",8003,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Flight-modes.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fmobile-subset.md",8561,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Fmobile-subset.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fprobes.md",9495,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Fprobes.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fshadows.md",11187,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Freference\u002Fshadows.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002FEditor\u002FBakeAndReadBack.cs","OTHER","其他",17358,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Fresources\u002FEditor\u002FBakeAndReadBack.cs",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FEditor\u002FLightingAudit.cs",28969,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-lighting\u002Fresources\u002FEditor\u002FLightingAudit.cs",[83,90,97,104,111,118],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"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":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"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",[],[]]