Save several contexts together¶
World persistence coordinates a registered set of context saves. It does not discover every context in every loaded scene or create missing scene objects on load.
- Configure one
TunalPersistenceper participating context, each with a unique stable Context ID. - Add
WorldPersistenceto an always-active coordinator. Register the participating persistence components in its context list. - Choose a world folder/slot distinct from independently saved context slots. Configure missing-context policy intentionally.
- Create
WorldSaveButtons.csfrom the world guide, assign the coordinator, and connect Save/Load buttons. - Save two different clocks, change both, then load and check each context and result warnings.
- Test a deliberately missing registration before release. Exact restoration rejects a mismatched set; the skip-missing policy has different coverage.
World save captures all registered contexts before writing an inactive data bank and publishing the manifest. World load preflights before sequential application. This is not atomic restoration: an error applying a later context can leave earlier contexts restored.
World persistence does not store which presentation the player selected. Rebind or restore your selection separately, and keep the save/load host active through confirmed storage synchronization.
Related: world contracts, lifecycle registration, context UI.