[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMMJZ7MV21DBJCH76RSPRJ":3,"skill-same:01M7CMMJZ7MV21DBJCH76RSPRJ":120},{"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},"01M7CMMJZ7MV21DBJCH76RSPRJ","unity-scene-flow",null,"Boot scene and additive loading, pause as a state, save files with migrations, checkpoints, pools.","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-scene-flow\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-scene-flow\ndescription: >-\n  Boot scene and additive loading, pause as a state, save files with migrations, checkpoints, pools.\n---\n\n# unity-scene-flow — one scene that never unloads owns what must survive a load; everything else is rebuilt from data\n\n> **Almost nothing should survive a scene load by staying alive.** The instinct is to keep the\n> player, the score and the managers with `DontDestroyOnLoad` and carry them from scene to scene.\n> Do the opposite: a handful of services live in one scene that is never unloaded, and\n> *everything else is destroyed and rebuilt from a short list of facts*. That list is the save\n> file. A game that can rebuild a room from data already has saving, checkpoints and a retry\n> button; a game that keeps objects alive across loads has to invent all three later, against\n> its own structure.\n\n## Load what the situation needs\n\n| The situation | Read |\n|---|---|\n| \"My managers are duplicated after returning to the menu\"; what goes in Boot; the service registry; initialisation order; pressing Play from any scene; `DontDestroyOnLoad` against a persistent scene; duplicated managers | `reference\u002Fbootstrap.md` |\n| `LoadSceneAsync`, `allowSceneActivation`, what the active scene decides, unloading, \"the loading screen hangs at 90%\" (stuck at 0.9), scene paths, streaming neighbours, Addressables scenes | `reference\u002Fadditive-scenes.md` |\n| \"Pausing doesn't stop everything\"; the phases and their legal transitions; what `timeScale` 0 stops and what it does not; backgrounding and quitting on a phone; the phase on the probe | `reference\u002Fgame-state-and-pause.md` |\n| \"Add a save system\"; \"the save got corrupted\"; what a save holds and never holds; the atomic write; versions and migrations; `JsonUtility` limits; where the file lives | `reference\u002Fsave-format.md` |\n| \"Respawn at the checkpoint\"; a checkpoint as a small save; respawn without reloading; what resets; the teleport | `reference\u002Fcheckpoints.md` |\n| `ObjectPool\u003CT>` parameters, prewarming, resetting an instance, pooled objects in triggers, whether the pool helps | `reference\u002Fpooling.md` |\n| Config assets, ids for kinds of thing, runtime sets, event channels; \"progress resets in the build, not in the editor\" | `reference\u002Fscriptable-objects.md` |\n| Music and fades across a pause; `ignoreListenerPause` | `unity-audio` → `reference\u002Fmusic-playback.md` |\n| Switching action maps for the pause menu · clearing presses on resume | `unity-input` → `reference\u002Faction-asset.md` · `unity-input` → `reference\u002Freading-input.md` |\n| A menu fade that became a state machine | `unity-game-ui` → `reference\u002Fscreen-transitions.md` |\n| Telling the camera a respawn was a cut; cameras at `timeScale` 0 | `unity-camera` → `reference\u002Fupdate-order-and-jitter.md` |\n| Hit stop and slow motion beside a pause | `unity-game-feel` → `reference\u002Fhit-stop-and-time.md` |\n| Baked lighting for scenes loaded together | `unity-lighting` → `reference\u002Fbake-setup.md` |\n| `Physics.IgnoreCollision` lost on a reused instance | `unity-physics-3d` → `reference\u002Feditor-vs-build.md` |\n| Scheduled, completed and discarded work for a pool or a streamer | `unity-profiling` → `reference\u002Fwork-counters.md` |\n| Cloud saves: access classes, locks, conflicts | `unity-ugs` → `reference\u002Fcloud-save.md` |\n| Scenes and atlases delivered through Addressables | `unity-sprite-atlas` → `reference\u002Faddressables-delivery.md` |\n| Rooms and chunks stitched in a 2D level | `unity-2d-level` → `reference\u002Frooms-and-chunks.md` |\n| Booting a test into a moment; journeys and timelines | `unity-play-harness` → `reference\u002Fsituations.md` · `unity-play-harness` → `reference\u002Fjourneys.md` |\n| Rules as plain data with no scene | `unity-game-brief` → `reference\u002Fsim-presentation-split.md` |\n\n```\nBoot scene — build index 0, never unloaded        content scene — one at a time, additive\n  Bootstrap ─ ServiceRegistry                        the room, the runner, the sentry\n    GameState    Boot·Menu·Loading·Playing·           PersistentId on what the save names\n                 Paused·Won·Lost                 ◄──  asks for services from Start\n    SceneLoader  load · unload · one in flight        rebuilt from SaveData on every arrival\n    SaveStore    save.json · .bak · .tmp\n    PickupObjectPool  instances parented under it\n```\n\n| File | Is |\n|---|---|\n| `resources\u002FBootstrap.cs` | The root of the Boot scene: creates the services once, in order, and the registry that hands them out |\n| `resources\u002FSceneLoader.cs` | Additive load and unload by build path, progress, a stall limit, one operation at a time |\n| `resources\u002FGameState.cs` | Seven phases and the table of legal transitions; owns `Time.timeScale` while paused unless a hit-stop owner does; plain C# |\n| `resources\u002FSaveStore.cs` | `SaveData`, the migration chain, and a write that leaves the old save or the new one, never neither |\n| `resources\u002FPersistentId.cs` | The string a save uses to name a scene object |\n| `resources\u002FPickupObjectPool.cs` | `ObjectPool\u003CT>` in Boot, with the counters that say whether it is working |\n| `scripts\u002Fsave_check.py` | Reads a save from outside Unity; exit 1 on a finding |\n| `templates\u002FSaveRoundTripTests.cs`, `templates\u002FSceneFlowJourneyTest.cs` | The two gates |\n\n---\n\n## 1. Start here — the gate room\n\n1. **Make the Boot scene.** `Assets\u002FScenes\u002FBoot.unity`, first in the build's scene list: one\n   root object with `Bootstrap`, a child with `PickupObjectPool`, the loading screen and pause menu.\n   No geometry, no lights. Set `firstScenePath` to the menu's build path.\n2. **Load only through Boot.** `Bootstrap.Instance.LoadContent(\"Assets\u002FScenes\u002FGateRoom.unity\")`\n   moves the phase to `Loading`, unloads the old room, loads the new one additively, makes it\n   the active scene and arrives in `Playing`. Nothing else calls `LoadScene`, and nothing loads\n   in single mode.\n3. **Ask for services from `Start`, never from `Awake`.**\n\n```csharp\nvoid Start()\n{\n    _state = Bootstrap.Get\u003CGameState>();\n    _state.Changed += OnPhase;                      \u002F\u002F and -= in OnDisable\n}\n\nvoid OnReachedGate() => _state.TryGo(GamePhase.Won);   \u002F\u002F false, and nothing happens, while Paused\n```\n\n4. **Give every saved object a `PersistentId`**, record facts as they happen\n   (`save.SetFlag(id.Id, 1)`), and make each object able to put itself back from the save\n   (`ResetTo(SaveData)`): the same pass runs after a load and after a respawn.\n5. **Write the save at checkpoints and when the app leaves the foreground**, with the clock\n   passed in: `Bootstrap.Get\u003CSaveStore>().Write(save, DateTimeOffset.UtcNow.ToUnixTimeSeconds())`.\n6. **Prove it, then prove the proof can fail.**\n\n| Gate | Asserts |\n|---|---|\n| `SaveRoundTrip` (EditMode, 9 tests) | Write then read is equal; a version 1 file arrives as version 2; half a file is detected and the save before it is returned; a newer build's file is never overwritten |\n| `GateRoom_PhaseMovesOnlyAlongLegalTransitions` | The timeline's phases are exactly Boot, Loading, Playing, Paused, Playing, Won; `Paused → Won` is refused; nothing moves and game time stands still while paused |\n| `Boot_SurvivesTheLevel_AndThePoolHandsBackTheSameObjects` | The level unloads, Boot does not; a second unload in flight is refused; the pickups set out again are the same three objects; a new object lands in the level |\n\n```bash\n\"$UNITY\" -projectPath . -batchmode -runTests -testPlatform PlayMode -testFilter SceneFlowJourney \\\n    -testResults \u002Ftmp\u002Fresults.xml -logFile \u002Ftmp\u002Ftests.log\nSCENEFLOW_JOURNEY_BREAK=illegal   # · boot · pool — each turns one test red\npython3 scripts\u002Fsave_check.py \"\u003CpersistentDataPath>\u002Fsave.json\"     # exit 1 on a finding\n```\n\nThe journey builds its scenes with `SceneManager.CreateScene` — no scene asset, no build-list\nentry — and drives pause through `ScriptedRunInput`. Copy the `resources\u002F` files into one\nRuntime assembly; the journey also needs the harness (`unity-play-harness` → `resources\u002F`),\n`RunInput.cs` and `ScriptedRunInput.cs` (`unity-input` → `resources\u002F`) and\n`com.unity.test-framework`. `GameState` publishes its phase on `GameProbe` by reflection, so the\nruntime files compile with no harness in the project.\n\n## Discipline\n\n- **Every load is additive, and only `SceneLoader` loads.** One single-mode `LoadScene` unloads\n  Boot. Grep for it before every release.\n- **Boot holds services, never content.** If it would be wrong for a thing to reset when the\n  room reloads, it is a service or a fact in the save — not a level object kept alive.\n- **One static: `Bootstrap.Instance`.** Services are created in one method in dependency order\n  and handed out by type. Below the top, pass them; do not fetch them every frame.\n- **`Awake` wires an object to itself; `Start` talks to services.** Pressing Play on a level\n  runs its `Awake` before Boot exists.\n- **Name scenes by build path.** A name matches the first scene that has it; an index shifts.\n- **Wait on frames and real time in the loading path.** `progress` stops at 0.9 while activation\n  is held, and `WaitForSeconds` never returns at `timeScale` 0.\n- **The active scene is the level.** New objects land there. Anything meant for Boot is parented\n  under its owner.\n- **The phase is the fact; `Time.timeScale` follows it.** `Update` runs at scale 0, audio plays,\n  input fires. Simulation checks `IsPlaying` or runs on the fixed step. One object writes the\n  scale: `GameState`, or — once the game has hit stop — the hit-stop owner, with\n  `ownsTimeScale` off and the phase setting its base.\n- **`TryGo` may say no.** An illegal transition is refused and counted, never performed. One\n  object asks for each transition.\n- **A save is facts by id.** No object references, instance ids, hierarchy paths or build\n  indices; nothing derivable. The clock is a parameter.\n- **Write to a temporary file, flush, verify, then replace — and never back up a damaged file\n  over a good one.**\n- **A version bump comes with a frozen old class, one migration step and one hand-typed\n  fixture.** Old steps are never edited.\n- **Respawn runs the same `ResetTo` pass as arrival.** Two ways of setting up a room are two\n  rooms.\n- **A pooled instance is cleaned on release, and the pool's own double-release check exists in\n  the Editor only.** Watch `Created` stay flat; that is the measurement.\n- **Nothing writes a ScriptableObject asset's serialised fields at runtime.** It persists in the\n  Editor and is lost in a build.\n- **The human keeps the feel verdict.** The journey shows the phase order and that time stood\n  still; whether the pause, the fade and the respawn feel right is a judgement.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Menus, HUD, the loading screen's look, transitions | `unity-game-ui` |\n| Music and mixers, action assets and rebinding, Cloud Save and accounts, test situations and journeys, the brief, lightmaps, frame-time counters, Addressables delivery, 2D rooms | the handoff rows of the table at the top: `unity-audio` · `unity-input` · `unity-ugs` · `unity-play-harness` · `unity-game-brief` · `unity-lighting` · `unity-profiling` · `unity-sprite-atlas` · `unity-2d-level` |\n| Assemblies, version control, project creation | `unity-new-project` |\n| LOD, occlusion, batching, texture streaming | `unity-scene-optimisation` |\n| Building a 3D level: kits, prefabs, terrain | `unity-3d-level` |\n| What a pickup, a switch or a door does | `unity-interaction` |\n| Damage, projectiles, hit windows | `unity-combat` |\n| Sentry behaviour, spawners and waves | `unity-game-ai` |\n| Hit stop, shake, particles, haptics | `unity-game-feel` |\n| Host migration | `unity-multiplayer-services` → `reference\u002Fsession-api.md` |\n| Networked scene management | Out of scope (netcode APIs); topology and authority: `unity-live-services` → `reference\u002Fmultiplayer.md` |\n\nWhat is left is the frame the rest hangs on: **what exists for the whole session, how one room\nreplaces another, which phase the game is in, and the facts that put a room back.**\n","# unity-scene-flow — one scene that never unloads owns what must survive a load; everything else is rebuilt from data\n\n> **Almost nothing should survive a scene load by staying alive.** The instinct is to keep the\n> player, the score and the managers with `DontDestroyOnLoad` and carry them from scene to scene.\n> Do the opposite: a handful of services live in one scene that is never unloaded, and\n> *everything else is destroyed and rebuilt from a short list of facts*. That list is the save\n> file. A game that can rebuild a room from data already has saving, checkpoints and a retry\n> button; a game that keeps objects alive across loads has to invent all three later, against\n> its own structure.\n\n## Load what the situation needs\n\n| The situation | Read |\n|---|---|\n| \"My managers are duplicated after returning to the menu\"; what goes in Boot; the service registry; initialisation order; pressing Play from any scene; `DontDestroyOnLoad` against a persistent scene; duplicated managers | `reference\u002Fbootstrap.md` |\n| `LoadSceneAsync`, `allowSceneActivation`, what the active scene decides, unloading, \"the loading screen hangs at 90%\" (stuck at 0.9), scene paths, streaming neighbours, Addressables scenes | `reference\u002Fadditive-scenes.md` |\n| \"Pausing doesn't stop everything\"; the phases and their legal transitions; what `timeScale` 0 stops and what it does not; backgrounding and quitting on a phone; the phase on the probe | `reference\u002Fgame-state-and-pause.md` |\n| \"Add a save system\"; \"the save got corrupted\"; what a save holds and never holds; the atomic write; versions and migrations; `JsonUtility` limits; where the file lives | `reference\u002Fsave-format.md` |\n| \"Respawn at the checkpoint\"; a checkpoint as a small save; respawn without reloading; what resets; the teleport | `reference\u002Fcheckpoints.md` |\n| `ObjectPool\u003CT>` parameters, prewarming, resetting an instance, pooled objects in triggers, whether the pool helps | `reference\u002Fpooling.md` |\n| Config assets, ids for kinds of thing, runtime sets, event channels; \"progress resets in the build, not in the editor\" | `reference\u002Fscriptable-objects.md` |\n| Music and fades across a pause; `ignoreListenerPause` | `unity-audio` → `reference\u002Fmusic-playback.md` |\n| Switching action maps for the pause menu · clearing presses on resume | `unity-input` → `reference\u002Faction-asset.md` · `unity-input` → `reference\u002Freading-input.md` |\n| A menu fade that became a state machine | `unity-game-ui` → `reference\u002Fscreen-transitions.md` |\n| Telling the camera a respawn was a cut; cameras at `timeScale` 0 | `unity-camera` → `reference\u002Fupdate-order-and-jitter.md` |\n| Hit stop and slow motion beside a pause | `unity-game-feel` → `reference\u002Fhit-stop-and-time.md` |\n| Baked lighting for scenes loaded together | `unity-lighting` → `reference\u002Fbake-setup.md` |\n| `Physics.IgnoreCollision` lost on a reused instance | `unity-physics-3d` → `reference\u002Feditor-vs-build.md` |\n| Scheduled, completed and discarded work for a pool or a streamer | `unity-profiling` → `reference\u002Fwork-counters.md` |\n| Cloud saves: access classes, locks, conflicts | `unity-ugs` → `reference\u002Fcloud-save.md` |\n| Scenes and atlases delivered through Addressables | `unity-sprite-atlas` → `reference\u002Faddressables-delivery.md` |\n| Rooms and chunks stitched in a 2D level | `unity-2d-level` → `reference\u002Frooms-and-chunks.md` |\n| Booting a test into a moment; journeys and timelines | `unity-play-harness` → `reference\u002Fsituations.md` · `unity-play-harness` → `reference\u002Fjourneys.md` |\n| Rules as plain data with no scene | `unity-game-brief` → `reference\u002Fsim-presentation-split.md` |\n\n```\nBoot scene — build index 0, never unloaded        content scene — one at a time, additive\n  Bootstrap ─ ServiceRegistry                        the room, the runner, the sentry\n    GameState    Boot·Menu·Loading·Playing·           PersistentId on what the save names\n                 Paused·Won·Lost                 ◄──  asks for services from Start\n    SceneLoader  load · unload · one in flight        rebuilt from SaveData on every arrival\n    SaveStore    save.json · .bak · .tmp\n    PickupObjectPool  instances parented under it\n```\n\n| File | Is |\n|---|---|\n| `resources\u002FBootstrap.cs` | The root of the Boot scene: creates the services once, in order, and the registry that hands them out |\n| `resources\u002FSceneLoader.cs` | Additive load and unload by build path, progress, a stall limit, one operation at a time |\n| `resources\u002FGameState.cs` | Seven phases and the table of legal transitions; owns `Time.timeScale` while paused unless a hit-stop owner does; plain C# |\n| `resources\u002FSaveStore.cs` | `SaveData`, the migration chain, and a write that leaves the old save or the new one, never neither |\n| `resources\u002FPersistentId.cs` | The string a save uses to name a scene object |\n| `resources\u002FPickupObjectPool.cs` | `ObjectPool\u003CT>` in Boot, with the counters that say whether it is working |\n| `scripts\u002Fsave_check.py` | Reads a save from outside Unity; exit 1 on a finding |\n| `templates\u002FSaveRoundTripTests.cs`, `templates\u002FSceneFlowJourneyTest.cs` | The two gates |\n\n---\n\n## 1. Start here — the gate room\n\n1. **Make the Boot scene.** `Assets\u002FScenes\u002FBoot.unity`, first in the build's scene list: one\n   root object with `Bootstrap`, a child with `PickupObjectPool`, the loading screen and pause menu.\n   No geometry, no lights. Set `firstScenePath` to the menu's build path.\n2. **Load only through Boot.** `Bootstrap.Instance.LoadContent(\"Assets\u002FScenes\u002FGateRoom.unity\")`\n   moves the phase to `Loading`, unloads the old room, loads the new one additively, makes it\n   the active scene and arrives in `Playing`. Nothing else calls `LoadScene`, and nothing loads\n   in single mode.\n3. **Ask for services from `Start`, never from `Awake`.**\n\n```csharp\nvoid Start()\n{\n    _state = Bootstrap.Get\u003CGameState>();\n    _state.Changed += OnPhase;                      \u002F\u002F and -= in OnDisable\n}\n\nvoid OnReachedGate() => _state.TryGo(GamePhase.Won);   \u002F\u002F false, and nothing happens, while Paused\n```\n\n4. **Give every saved object a `PersistentId`**, record facts as they happen\n   (`save.SetFlag(id.Id, 1)`), and make each object able to put itself back from the save\n   (`ResetTo(SaveData)`): the same pass runs after a load and after a respawn.\n5. **Write the save at checkpoints and when the app leaves the foreground**, with the clock\n   passed in: `Bootstrap.Get\u003CSaveStore>().Write(save, DateTimeOffset.UtcNow.ToUnixTimeSeconds())`.\n6. **Prove it, then prove the proof can fail.**\n\n| Gate | Asserts |\n|---|---|\n| `SaveRoundTrip` (EditMode, 9 tests) | Write then read is equal; a version 1 file arrives as version 2; half a file is detected and the save before it is returned; a newer build's file is never overwritten |\n| `GateRoom_PhaseMovesOnlyAlongLegalTransitions` | The timeline's phases are exactly Boot, Loading, Playing, Paused, Playing, Won; `Paused → Won` is refused; nothing moves and game time stands still while paused |\n| `Boot_SurvivesTheLevel_AndThePoolHandsBackTheSameObjects` | The level unloads, Boot does not; a second unload in flight is refused; the pickups set out again are the same three objects; a new object lands in the level |\n\n```bash\n\"$UNITY\" -projectPath . -batchmode -runTests -testPlatform PlayMode -testFilter SceneFlowJourney \\\n    -testResults \u002Ftmp\u002Fresults.xml -logFile \u002Ftmp\u002Ftests.log\nSCENEFLOW_JOURNEY_BREAK=illegal   # · boot · pool — each turns one test red\npython3 scripts\u002Fsave_check.py \"\u003CpersistentDataPath>\u002Fsave.json\"     # exit 1 on a finding\n```\n\nThe journey builds its scenes with `SceneManager.CreateScene` — no scene asset, no build-list\nentry — and drives pause through `ScriptedRunInput`. Copy the `resources\u002F` files into one\nRuntime assembly; the journey also needs the harness (`unity-play-harness` → `resources\u002F`),\n`RunInput.cs` and `ScriptedRunInput.cs` (`unity-input` → `resources\u002F`) and\n`com.unity.test-framework`. `GameState` publishes its phase on `GameProbe` by reflection, so the\nruntime files compile with no harness in the project.\n\n## Discipline\n\n- **Every load is additive, and only `SceneLoader` loads.** One single-mode `LoadScene` unloads\n  Boot. Grep for it before every release.\n- **Boot holds services, never content.** If it would be wrong for a thing to reset when the\n  room reloads, it is a service or a fact in the save — not a level object kept alive.\n- **One static: `Bootstrap.Instance`.** Services are created in one method in dependency order\n  and handed out by type. Below the top, pass them; do not fetch them every frame.\n- **`Awake` wires an object to itself; `Start` talks to services.** Pressing Play on a level\n  runs its `Awake` before Boot exists.\n- **Name scenes by build path.** A name matches the first scene that has it; an index shifts.\n- **Wait on frames and real time in the loading path.** `progress` stops at 0.9 while activation\n  is held, and `WaitForSeconds` never returns at `timeScale` 0.\n- **The active scene is the level.** New objects land there. Anything meant for Boot is parented\n  under its owner.\n- **The phase is the fact; `Time.timeScale` follows it.** `Update` runs at scale 0, audio plays,\n  input fires. Simulation checks `IsPlaying` or runs on the fixed step. One object writes the\n  scale: `GameState`, or — once the game has hit stop — the hit-stop owner, with\n  `ownsTimeScale` off and the phase setting its base.\n- **`TryGo` may say no.** An illegal transition is refused and counted, never performed. One\n  object asks for each transition.\n- **A save is facts by id.** No object references, instance ids, hierarchy paths or build\n  indices; nothing derivable. The clock is a parameter.\n- **Write to a temporary file, flush, verify, then replace — and never back up a damaged file\n  over a good one.**\n- **A version bump comes with a frozen old class, one migration step and one hand-typed\n  fixture.** Old steps are never edited.\n- **Respawn runs the same `ResetTo` pass as arrival.** Two ways of setting up a room are two\n  rooms.\n- **A pooled instance is cleaned on release, and the pool's own double-release check exists in\n  the Editor only.** Watch `Created` stay flat; that is the measurement.\n- **Nothing writes a ScriptableObject asset's serialised fields at runtime.** It persists in the\n  Editor and is lost in a build.\n- **The human keeps the feel verdict.** The journey shows the phase order and that time stood\n  still; whether the pause, the fade and the respawn feel right is a judgement.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Menus, HUD, the loading screen's look, transitions | `unity-game-ui` |\n| Music and mixers, action assets and rebinding, Cloud Save and accounts, test situations and journeys, the brief, lightmaps, frame-time counters, Addressables delivery, 2D rooms | the handoff rows of the table at the top: `unity-audio` · `unity-input` · `unity-ugs` · `unity-play-harness` · `unity-game-brief` · `unity-lighting` · `unity-profiling` · `unity-sprite-atlas` · `unity-2d-level` |\n| Assemblies, version control, project creation | `unity-new-project` |\n| LOD, occlusion, batching, texture streaming | `unity-scene-optimisation` |\n| Building a 3D level: kits, prefabs, terrain | `unity-3d-level` |\n| What a pickup, a switch or a door does | `unity-interaction` |\n| Damage, projectiles, hit windows | `unity-combat` |\n| Sentry behaviour, spawners and waves | `unity-game-ai` |\n| Hit stop, shake, particles, haptics | `unity-game-feel` |\n| Host migration | `unity-multiplayer-services` → `reference\u002Fsession-api.md` |\n| Networked scene management | Out of scope (netcode APIs); topology and authority: `unity-live-services` → `reference\u002Fmultiplayer.md` |\n\nWhat is left is the frame the rest hangs on: **what exists for the whole session, how one room\nreplaces another, which phase the game is in, and the facts that put a room back.**\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-scene-flow",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-scene-flow",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-scene-flow",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-scene-flow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,82,86,90,94,98,102,106,112,116],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fadditive-scenes.md","REFERENCE","参考文档",13456,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fadditive-scenes.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fbootstrap.md",11894,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fbootstrap.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fcheckpoints.md",10424,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fcheckpoints.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fgame-state-and-pause.md",11480,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fgame-state-and-pause.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fpooling.md",10044,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fpooling.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fsave-format.md",13344,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fsave-format.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fscriptable-objects.md",10238,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Freference\u002Fscriptable-objects.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FBootstrap.cs","OTHER","其他",10121,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FBootstrap.cs",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"resources\u002FGameState.cs",8053,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FGameState.cs",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"resources\u002FPersistentId.cs",5157,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FPersistentId.cs",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002FPickupObjectPool.cs",6299,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FPickupObjectPool.cs",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"resources\u002FPooledPickup.cs",1111,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FPooledPickup.cs",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"resources\u002FSaveStore.cs",14988,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FSaveStore.cs",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"resources\u002FSceneLoader.cs",9532,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fresources\u002FSceneLoader.cs",{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Fsave_check.py","SCRIPT","脚本",8544,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Fscripts\u002Fsave_check.py",{"path":113,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":114,"sourceHtmlUrl":115},"templates\u002FSaveRoundTripTests.cs",9432,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Ftemplates\u002FSaveRoundTripTests.cs",{"path":117,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":118,"sourceHtmlUrl":119},"templates\u002FSceneFlowJourneyTest.cs",18818,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-scene-flow\u002Ftemplates\u002FSceneFlowJourneyTest.cs",[121,128,135,142,149,156],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"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":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"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":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"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":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"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":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"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",[],[]]