Skip to content
Plugin 1.0 · Unreal Engine 5.8Version details

Save and load ​

Saving works at several levels: an individual container, a container manager, quick slots, or all registered inventories in the world. Each level provides Get Save Data to capture its state and Load from Save Data to restore it.

Containers ​

Each built-in container implements GetSaveData and LoadFromSaveData. Its data includes the container definition and ID, item definitions and IDs, occupied slots, and item tag values, including quantity and rotation. Containers inside those items are saved and restored recursively.

For example, saving a container holding a ChestRig also includes the rig's containers and their contents. They do not need to be collected separately.

In the current version, individual container save/load functions are C++ methods. Blueprint access is available through the manager, quick-slot component, and subsystem described below.

Container managers ​

On Ric Container Manager, Get Save Data returns Ric Container Manager Save Data (FRicContainerManagerSaveData). It contains the manager's ID, its own stat tags, and all its root containers with their complete nested contents.

Pass that data to Load from Save Data on the manager to restore the inventory. Loading replaces its current root containers and reconstructs the saved contents.

These functions are available in Blueprint. They handle this manager's inventory; save its quick-slot component separately when using this level directly.

Quick slots ​

Ric Quick Slots also exposes Get Save Data and Load from Save Data in Blueprint. Ric Quick Slots Save Data (FRicQuickSlotsSaveData) contains the slot count and each slot's assigned item ID.

When restoring components separately, load the inventory first, then the quick slots. The quick-slot component finds the restored items by ID in the container manager on the same actor, including items in nested storage.

All inventories in the world ​

For a combined snapshot, use Ric Inventory Subsystem. Both functions are available in Blueprint:

  • Get Save Data returns Ric Save Data (FRicSaveData) for all registered container managers in the current world. For each manager, it also captures Ric Quick Slots on the same owning actor, when present.
  • Load from Save Data finds each registered manager by its saved ID, restores its inventory, then restores that actor's quick slots.

Container managers register automatically during BeginPlay and unregister when they end play. A single subsystem call handles their inventories, nested contents, and associated quick slots.

Persistent IDs and restore order ​

Give each manager a stable, unique ID and assign that same ID to its corresponding inventory in later sessions. See Assign the persistent IDs.

Before loading, the owning actors must exist, their managers must be registered, and their IDs must be assigned. The subsystem restores matching inventories; it does not spawn missing actors. Managers without a matching saved ID are left unchanged.

For multiplayer, capture and restore the authoritative inventory state on the server.

Blueprint nodes ​

The screenshots compare the three Blueprint targets. Choose the scope you need; these nodes are alternatives, not a sequence.

Get Save Data ​

Connect the subsystem or component reference to Target and store Return Value for later restoration.

Get Save Data nodes targeting Ric Inventory Subsystem, Ric Container Manager, and Ric Quick Slots

Load from Save Data ​

Connect the target reference and pass its saved snapshot to Save Data, using the matching data type. Connect the execution pins to your load flow. When loading components separately, restore the manager before its quick slots.

Load from Save Data nodes targeting Ric Inventory Subsystem, Ric Container Manager, and Ric Quick Slots, each with a Save Data input

Store the snapshot between sessions ​

Get Save Data returns a snapshot you can store in a variable. To keep the combined snapshot between sessions, add a Ric Save Data variable to your SaveGame object and write it with Save Game to Slot.

When loading, read the SaveGame object with Load Game from Slot and pass its stored Ric Save Data to Load from Save Data on Ric Inventory Subsystem, after the owners are ready.