Skip to content

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.

  1. Configure one TunalPersistence per participating context, each with a unique stable Context ID.
  2. Add WorldPersistence to an always-active coordinator. Register the participating persistence components in its context list.
  3. Choose a world folder/slot distinct from independently saved context slots. Configure missing-context policy intentionally.
  4. Create WorldSaveButtons.cs from the world guide, assign the coordinator, and connect Save/Load buttons.
  5. Save two different clocks, change both, then load and check each context and result warnings.
  6. 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.