Use one Inventory System Manager to register the active database for Items, Inventories, Currency, crafting and UI lookups. It provides the global catalog; each player owns a separate Inventory and its collections.

Create the manager

  1. Open Tools > Opsive > Ultimate Inventory System > Main Manager > Setup and choose the project Inventory System Database.
  2. Under Scene Setup, choose Add Components. It reuses the Scheduler’s GameObject or creates a Game root, then adds Inventory System Manager, Item Object Spawner, Scheduler, Object Pool and Audio Manager.
  3. Inspect Inventory System Manager on that root and use the same Database selected in Main Manager.
  4. Keep Pre Evaluate Attributes enabled for normal use. Choose the manager’s scene lifetime before adding destination scenes.

The legacy Inventory System Manager Inspector with DemoInventoryDatabase assigned to the Database field.

This legacy crop shows Database; the Version 1 Inspector also provides:

Field Default Purpose
Database None Registers the primary database during Awake. Verify the asset even when Inspector selection fills it from Main Manager.
Pre Evaluate Attributes On Reevaluates Category and Definition attributes after registration. Disabling skips that final pass.
Dont Destroy On Load Off Persists the entire owning GameObject and its other components when enabled.

Other Setup controls

Box or control Result and next workflow
Input Setup > Add Inputs Adds legacy Input Manager mappings after an irreversible-change confirmation; use Input for Input System actions.
Character Setup > Character Gameobject > Add Components Adds missing Inventory Identifier, Inventory, Item User, Unity Input, Currency Owner and Inventory Interactor; configure collections/loadout through Spawn Player.
Save Setup > Object to save > Add Components Adds applicable savers and shared save managers; see Save System.
UI Setup > Open UI Designer Opens UI Designer; run its setup to generate UI.
Create Templates > Option Item Pickup, Inventory Pickup, Random Inventory Pickup or Currency Pickup. Item Pickups covers Default Pickup Model Prefab, 3D Pickup and Item View options.

Change databases deliberately

Back up the scene, assign Database, then confirm Update Scene Database or select Update Scene. This replaces compatible references and saves the current scene; the Inspector warns that it cannot be reversed. Review prefabs and other scenes separately. Keep unique database names and IDs stable for saved and networked data.

Connect players and scene lifetime

Place Inventory Identifier, Inventory, Currency Owner and Item User together on each player. The identifier finds these components during Awake and registers them. Player one’s default ID is 1; give additional players unique nonzero IDs before activation. GetInventoryIdentifier(id) resolves that player.

For split-screen, share one manager/database and separate player Inventory Identifier, Display Panel Manager and UI IDs. See Split Screen Co-op UI.

Scene flow Manager ownership
Independent scenes Leave persistence off and configure each scene that can start directly. Each builds a fresh register.
Bootstrap plus destination/additive scenes Persist one bootstrap Game root and keep managers out of the loaded content scenes. Scheduler, pools, audio and spawner on that root persist too.

Persist the intended Inventories with their manager, or save and reconstruct runtime Items and identifiers across scenes. Keep exactly one active manager for the shared static API.

The manager creates its register/factory, registers Categories, Definitions and Default Items, Currency, Crafting Categories and Recipes, then optionally reevaluates attributes. Use exact case-sensitive lookup names. Begin dependent code after initialization and a successful expected-database lookup, typically in Start or with explicit execution ordering.

Verify the configuration

  1. Resolve Health Potion, Iron Sword and player ID 1; confirm their database and player Inventory are the intended ones.
  2. Create Items from those definitions and add them to Bag. Confirm expected attributes and UI contents.
  3. Load each destination/additive scene. Confirm one persistent root remains, or that an independent scene has its own correctly configured manager.
  4. Save/load a mutable unique sword with explicit Item overrides. Confirm its ID and values return with Inventory System Manager Item Saver configured.

Troubleshooting

Symptom Check and fix
Missing or wrong definition Assign the intended database, check exact capitalization and repair duplicate/null entries in Main Manager.
Unexpected runtime manager or early lookup failure Create an active configured manager before static access; defer dependent lookups until its database is ready.
Wrong player ID result Keep Identifier beside Inventory and assign stable, unique nonzero IDs before registration.
Stale inherited attributes Enable pre-evaluation and correct Category/Definition inheritance.
Scene change loses Items or selects wrong services Keep one owner, persist associated objects together or rebuild them through savers.
Database switch leaves old references Run Update Scene and update affected prefabs/other scenes separately.

Developer reference

Use the initialized manager’s static API:

var consumable = InventorySystemManager.GetItemCategory("Consumable");
var potionDefinition = InventorySystemManager.GetItemDefinition("Health Potion");
var swordDefinition = InventorySystemManager.GetItemDefinition("Iron Sword");

var player = InventorySystemManager.GetInventoryIdentifier(1);
var bag = player?.Inventory.GetItemCollection("Bag");

var potion = InventorySystemManager.CreateItem(potionDefinition);
var sword = InventorySystemManager.CreateItem(swordDefinition);

if (bag != null && potion != null && sword != null) {
    bag.AddItem((ItemInfo)(1, potion));
    bag.AddItem((ItemInfo)(1, sword));
}

Category, Definition, Currency, Crafting Category and Recipe lookups accept names or uint IDs. GetItem(uint) resolves a runtime Item. CreateItem accepts a definition name, Definition or source Item, optional overrides and requested ID. Use the returned ID; immutable equivalent creations can resolve to an existing Item.

Register exposes the registers; Factory creates objects. PrintGetReadableRegisteredObjectsNamesAndIDs() prints registered identities. GetGlobal<T> and SetGlobal<T> access supporting global registrations. Use IInventorySystemManager.IsInitialized plus successful database lookups for readiness, and the factory’s OnItemCreation for Item creation:

private void Start()
{
    InventorySystemManager.Factory.OnItemCreation += HandleItemCreated;
}

private void OnDestroy()
{
    if (InventorySystemManager.IsNull) { return; }
    InventorySystemManager.Factory.OnItemCreation -= HandleItemCreated;
}

private void HandleItemCreated(Item item)
{
    // React to the registered runtime Item.
}

Call Initialize() only when deliberately rebuilding the register and factory: it discards runtime registrations and factory event subscriptions. AddDatabase(IInventorySystemDatabase) registers extra data into this same world; keep names/IDs collision-free and primary-database scene validation in mind. Prefer one project database for the normal workflow.

Related: New Database, Inventory, Items, Save System, Events.