Scene architecture

From TheArcForge/UniClaude · View interactive version

Scene architecture is an AI agent skill from the GitHub repository TheArcForge/UniClaude. Use when you need detailed decision frameworks for scene structure, additive loading, scene management, transitions, and persistent managers.

How to use this skill

Skill file

Scene Architecture — Full Decision Framework

Use this when unity-architect's condensed scene section needs more depth.

DECISION: Scene Organization Pattern

When this applies: Deciding how to split a game into scenes.

Options:

  1. Monolithic (single scene) — entire game in one scene.
  1. Scene-per-state — Menu scene, Game scene, Results scene, etc.
  1. Bootstrap + additive — one persistent scene + content scenes loaded/unloaded.
  1. Streaming (additive + distance) — world divided into chunks loaded by proximity.

Decision tree:

Is the game small enough for one scene?
├── YES → Monolithic
└── NO → Are there persistent systems across states?
    ├── NO → Scene-per-state (simple LoadScene)
    └── YES → Bootstrap + additive
              └── Is the world large/seamless? → Streaming chunks

DECISION: Persistent Managers

When this applies: Systems that must survive scene transitions (audio, networking, input, game state).

Options:

  1. Bootstrap scene (recommended) — managers live in a scene that is never unloaded.
  1. DontDestroyOnLoad — mark specific GameObjects as persistent.
  1. Static classes — no GameObject, pure C# static state.

DECISION: Scene Transitions

When this applies: Moving between game states or levels.

Options:

  1. Hard cut — LoadScene (non-async). Screen goes blank briefly.
  1. Fade transition — full-screen UI fades in, load happens behind, fade out.
  1. Loading screen — separate loading scene with progress bar.

MCP tool sequence for scene setup:

  1. scene_create — create bootstrap scene.
  2. scene_create_gameobject — create manager objects.
  3. component_add — add manager scripts.
  4. scene_create — create first content scene.
  5. scene_set_build — register both in build settings, bootstrap at index 0.

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.