Skip to content

refactor: add bootstrap and scene architecture - #12

Merged
pes7 merged 20 commits into
masterfrom
refactor/bootstrap-scene-architecture
Jul 27, 2026
Merged

pes7 merged 20 commits into
masterfrom
refactor/bootstrap-scene-architecture

Conversation

@pes7

@pes7 pes7 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

This stacked PR adds the bootstrap and scene architecture module on top of refactor/performance-budgets-stress-tooling.

Completed scope

  • adds ZoneUA.SceneManagement runtime assembly
  • adds SceneCatalog ScriptableObject for bootstrap, production, development and test scene roles
  • adds deterministic SceneTransitionState
  • adds persistent singleton SceneBootstrapper
  • loads gameplay scenes additively
  • activates the new gameplay scene before unloading the previous one
  • rejects overlapping transitions
  • reports progress and failures through explicit state/events
  • adds Editor tooling to create standard scene folders, catalog and template scenes
  • preserves currently open scenes while templates are generated additively
  • configures Bootstrap first in Build Settings
  • keeps Development and Tests disabled by default
  • adds scene architecture validation menu
  • blocks Unity builds when required scene architecture is invalid
  • adds EditMode coverage for transition state semantics
  • adds Docs/BOOTSTRAP_SCENE_ARCHITECTURE.md

Stacking

Base branch: refactor/performance-budgets-stress-tooling

Merge after PR #11, or retarget after earlier stacked PRs are merged.

Unity workflow

Run:

Zone UA -> Scenes -> Create Scene Architecture

Then review the generated Bootstrap, Production, Development and Tests scenes. Move persistent services into Bootstrap and gameplay-only objects into Production through the Unity Editor.

Validation required in Unity 6000.5.5f1

  • project compiles with zero Console errors
  • all SceneTransitionStateTests pass
  • scene architecture command creates missing folders/assets without overwriting existing scenes
  • currently open scenes remain open and unchanged
  • Bootstrap is the first enabled Build Settings scene
  • Development and Tests are disabled in release Build Settings
  • generated Bootstrap contains GlobalSystem and SceneBootstrapper
  • SceneCatalog reference is assigned
  • Production loads additively and becomes active
  • previous gameplay scene unloads after activation
  • Bootstrap remains loaded
  • duplicate bootstrap roots destroy themselves safely
  • invalid/missing scenes produce a failed transition rather than an overlapping load
  • build preprocessing blocks invalid scene configuration

The code and tooling scope is complete. The actual .unity assets must be generated and reviewed locally because this environment cannot safely create Unity scene serialization and references.

@pes7
pes7 force-pushed the refactor/performance-budgets-stress-tooling branch from fc2e8d1 to ea2a08c Compare July 27, 2026 20:53
@pes7
pes7 force-pushed the refactor/bootstrap-scene-architecture branch from 8e84cc9 to 13b83c1 Compare July 27, 2026 21:05
@pes7
pes7 changed the base branch from refactor/performance-budgets-stress-tooling to master July 27, 2026 21:05
@pes7
pes7 marked this pull request as ready for review July 27, 2026 21:05
@pes7
pes7 merged commit a0904a2 into master Jul 27, 2026
3 of 4 checks passed
@pes7
pes7 deleted the refactor/bootstrap-scene-architecture branch July 28, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant