unity-build-scenes
Build Unity scenes and prefab lifecycles with explicit data, navigation, loading, and serialization ownership.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 4
- Forks
- 3
01 前言 Front Matter
- name
- unity-build-scenes
- engines
- [ "UNITY" ]
- description
- Build Unity scenes and prefab lifecycles with explicit data, navigation, loading, and serialization ownership.
02 资源文件 12
- 参考文档agents/openai.yaml263 B
- 参考文档README.md5.2 KB
- 参考文档references/blender-asset-handoff.md3.3 KB
- 参考文档references/navigation-lifetime.md3.5 KB
- 脚本scripts/__init__.py224 B
- 脚本scripts/__main__.py30 B
- 脚本scripts/benchmark.py2.4 KB
- 脚本scripts/cli.py2.0 KB
- 脚本scripts/compress.py12.8 KB
- 脚本scripts/detect.py4.0 KB
- 脚本scripts/validate.py5.6 KB
- 参考文档SECURITY.md1.5 KB
03 SKILL.md 正文
Unity Build Scenes
When to use
Build Unity scenes and prefab lifecycles with explicit data, navigation, loading, and serialization ownership. Use this feature only for Unity-owned project code and assets.
Activation and prerequisites
Run commands/resolve-engine.sh and commands/resolve-skill.sh unity-build-scenes before edits or tool launches. Continue only when the effective engine is UNITY and this skill is eligible. A requested skill never selects its engine. Honor the resolved task override evidence and permitted output scope when an isolated prototype is selected.
Read ProjectVersion.txt, package manifest and lock, existing assembly definitions, target platforms, scene loading strategy, and gameplay acceptance scenarios. Identify the selected navigation package before using NavMesh APIs. Use the project's Unity-compatible C# profile; standalone .NET tooling does not select Unity's compiler.
Workflow
- Map lifetime across MonoBehaviour components, scene services and persistent application state. Assign Awake, OnEnable, Start, OnDisable and OnDestroy responsibilities; avoid relying on accidental execution order or introducing hidden global objects.
- Author GameObjects, components, prefabs and scenes through the project's supported Editor workflow. Preserve asset .meta GUIDs, prefab references and intentional overrides; a textual edit must not invent missing binary content or change file identities.
- Keep ScriptableObject assets as validated authoring configuration unless mutable shared state is explicitly intended. Build runtime state separately; entering Play Mode must not silently persist gameplay mutations into source assets.
- Choose additive versus replacement loading through SceneManager, define the active scene and loading gate, and keep scene activation/cancellation from leaving duplicate listeners, players or services. Addressables remains an explicit package and delivery decision.
- Integrate world streaming, navigation ownership and AI scheduling at scene boundaries. Record bake inputs, agent dimensions and link traversal; AI intent must enter the same movement authority as player movement. Read navigation lifetime for surfaces, path status, cancellation and rebaking.
- Define save records using stable domain identifiers and schema versions instead of scene instance references. Validate loaded data before applying it, restore dependencies in order, and make failed migration preserve the original save.
- Separate Editor-only authoring assemblies from runtime assemblies. Use project-owned validation to catch missing scripts, broken prefab links, duplicate IDs and invalid content before building.
For staged Blender assets, read Blender asset handoff for importer identity, actual rig selection, curated LODs and renderer-specific material review.
Verification
- Open and reload a representative scene with real Unity; check missing scripts, GUID references, prefab variants and deterministic bootstrap.
- Load, unload and reload additive content, disable and re-enable actors, and repeat Play Mode entry with the project's domain reload configuration.
- Round-trip a versioned save, reject malformed data, and test a navigation path that becomes unavailable. Record measured load and allocation budgets.
Output
Changed scene/prefab/component assets, a lifetime and loading map, content/save schemas and migration behavior, and native Editor/player evidence tied to the project version. Record environment, expected and observed results, evidence paths, and blocked or not-run checks separately from passes.
Boundaries
Do not install a navigation or loading package implicitly. A source scan can verify references but cannot certify a scene plays correctly. Engine guidance applies to engine-owned code; independent services retain their architecture contracts.
References
- Unity scene management. Use the documentation matching the installed project version.
- Script execution lifecycle. Use the documentation matching the installed project version.
04 同仓库更多 Skills
verify-web3-game-lifecycle
Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.
verify-onchain-game-assets
Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.
plan-web3-game-assets
Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.
integrate-game-wallets
Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.
integrate-game-asset-trading
Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.
build-evm-game-contracts
Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.