Scene Transitions
Choose which UIS managers, player and UI survive a scene change, then order activation and saving around those owners. Use the project’s loader for scene switching, loading progress, fades, input blocking and network authority.
Choose the ownership model
| Model | State transfer | Requirement |
|---|---|---|
| Complete setup in each independent scene | Save before unload; restore after new savers register. | Configure every independently playable scene. |
| Persistent bootstrap, player and optionally UI | Objects retain runtime state. | Destination scenes omit duplicate managers, players and persistent UI. |
| Persistent managers, recreated player/UI | Save Inventory/Currency; restore and rebind after spawn. | Stable IDs, saver keys and readiness order. |
| Smart loader or additive manager scene | Project loader establishes services before content activates. | Explicit initialization barrier, including direct Editor entry. |
Create the manager through Inventory System Manager. For a bootstrap, enable Dont Destroy On Load (default off) on its Game root. This persists all components on that GameObject, including pools, audio, Scheduler, spawner and any Save System components placed there. Save System Manager has no separate persistence toggle.
Establish that configured root before UIS static access. Include bootstrap in the build list; a directly opened gameplay scene needs a tested helper that establishes equivalent services first. Keep only one global manager.
Keep or recreate the player
Persist the player root through project code when Inventory, Equipment, Currency and identity should remain the same objects. Recreated UI can resolve the persistent player’s Identifier; persistent UI retains its owner. Checkpoints/application restarts can still use saves.
For a replacement player:
- Configure its components through Setup > Character Setup, with a stable nonzero Inventory Identifier ID.
- Run Save Setup and include Inventory/Currency savers plus the persistent manager Item saver. Keep Additive off for replacement Inventory loads.
- Preserve stable GameObject names, component types and saver Key values.
- Save before unloading, wait for replacement savers to register in
Start, then load:
SaveSystemManager.Save(0);
// Load or activate the destination scene, create the player, and wait for its
// Inventory Saver and Currency Owner Saver to reach Start.
SaveSystemManager.Load(0);
Use a real loader/spawner readiness signal for asynchronous creation. Configure the UCC integration’s saver for integrated characters.
Automatic scene saving
| Save System Manager field | Default | Behavior |
|---|---|---|
| Auto Load On Initialize | Off | Reads slot 0 into cache; later savers can apply it with Load On Start. |
| Auto Load On Scene Loaded | Off | Calls Load(0) during Unity’s scene callback. |
| Auto Save On Scene Unloaded | Off | Calls Save(0) during the unload callback. |
| Auto Save On Application Quit | Off | Writes slot 0 after opted-in savers refresh their data. |

Savers register in Start. For automatic recreated-player flows, combine the scene-load/unload manager options with each scene-bound saver’s Save On Destroy and replacement saver’s Load On Start. This caches outgoing state before destruction and applies preloaded state after registration. Prefer manual save-before-unload/load-after-readiness when the project needs explicit control or selectable slots.

Rebind UI after activation
Establish the database manager, Save System Manager, player Inventory/Currency/Identifier, then UI. Restore saved state after savers register.
| UI order | Ownership path |
|---|---|
| Player first | Display Panel Manager resolves Panel Owner Inventory Identifier ID. |
| UI first | Add Dynamic Panel Owner to the later player; match its manager ID so assignment initializes/re-enables the waiting UI. |
| Persistent UI, new player | Assign the replacement with SetPanelOwner or Dynamic Panel Owner. |
Inventory Identifier and Display Panel Manager default to ID 1; UI owner ID also defaults to 1, with Panel Owner empty. Give every local player and UI distinct matching IDs, its own EventSystem routing and unique saver full keys. Recreated UI needs the relevant savers for hotbar assignments and grid ordering; restore ownership separately from presentation.
In multiplayer, let the server/host coordinate scenes and restore authoritative state, then replicate results. UIS local IDs and save slots are separate from network identities.
Verify a transition
Start with a potion in Bag, a sword in Equipment and known Gold. Transition both ways and verify the same persistent objects or the correctly restored replacement. Confirm one manager/player/UI owner remains, each menu controls its intended player, and no duplicate EventSystem appears. Test bootstrap and supported direct-Editor entry, both spawn orders, mutable saved values and each local player’s independent ownership.
Troubleshooting
| Symptom | Check and fix |
|---|---|
| Empty database or duplicate roots | Initialize one configured bootstrap before content; omit its copies from destinations. |
| Missing Items/Gold or stale automatic save | Include the matching savers with stable keys; save before destruction or use Save On Destroy. |
| Automatic load misses objects | Use Load On Start for cached data or load after all replacement savers register. |
| Disabled/stale UI | Match owner IDs and call SetPanelOwner for the new player. |
| Crossed split-screen input/selection | Recheck player/UI IDs, Event System Identifier and independent input ownership. |
| Direct scene entry or loading screen fails | Establish the same manager barrier and drive loading UI from the project loader. |
Developer reference
Resolve the replacement after registration and bind UI:
const uint playerID = 1;
const uint panelManagerID = 1;
var player = InventorySystemManager.GetInventoryIdentifier(playerID);
var panelManager = InventorySystemManager.GetDisplayPanelManager(panelManagerID);
if (player != null && panelManager != null) {
panelManager.SetPanelOwner(player.gameObject);
}
OnPanelOwnerAssigned notifies component listeners; the named owner-change event runs after non-null assignment. Use the project’s loader/Unity scene callback for the outer transition lifecycle and Save System for slot-index events.
Direct Editor entry
This legacy project helper requires Script Execution Order -500. Assign either a synchronous manager prefab or an additive manager scene, and configure persistence. For the additive path, keep UIS content inactive until the manager scene loads and initializes:
using UnityEngine;
using System;
using System.Collections.Generic;
using Opsive.Shared.Utility;
using Opsive.UltimateInventorySystem.Core;
using Opsive.UltimateInventorySystem.Core.AttributeSystem;
using Opsive.UltimateInventorySystem.Core.DataStructures;
using Opsive.UltimateInventorySystem.Core.InventoryCollections;
using UnityEngine;
using Opsive.UltimateInventorySystem.Core;
using UnityEngine.SceneManagement;
public class SceneLoaderManagerExample : MonoBehaviour
{
[SerializeField] protected GameObject m_ManagerPrefab;
[SerializeField] protected int m_ManagerSceneBuildIndex= - 1;
private void Awake()
{
if (!InventorySystemManager.IsNull) {
//This gameobject is only needed to load the managers remove it once it is done.
Destroy(gameObject);
return;
}
// Instantiate a prefab of managers (Make sure to DontDestroyOnLoad).
if (m_ManagerPrefab != null) {
var managers = Instantiate(m_ManagerPrefab);
//Optional don't destroy on load here instead of within the manager components
//DontDestroyOnLoad(managers);
}
//Instead of a prefab load an additive scene with the manager (Make sure to DontDestroyOnLoad).
if (m_ManagerSceneBuildIndex >= 0) {
SceneManager.LoadScene(m_ManagerSceneBuildIndex, LoadSceneMode.Additive);
}
//This gameobject is only needed to load the managers remove it once it is done.
Destroy(gameObject);
}
}
Add UnityEngine, UnityEngine.SceneManagement and UIS namespaces. Keep database IDs, collection order, saver full keys and player/UI IDs compatible with saved data.
Related: Spawn Player, Inventory, Currency, Display Panel Manager, Split Screen.