Saving items in inventory?

anyone know how to save the items inside my inventory from this tutorial: https://www.youtube.com/watch?v=4NpcisVVhr0&t=2799s

if u havent see the tutorial by reids on spatial inventory i could try to explain how it works to help me find a solution, thanks

It’s pretty much the same as for any regular inventory:

  • get items’ data from the inventory
  • pack it into structs
  • add structs to arrays
  • push them into the save game
  • save to disk

i have already tried with structure but it seems to dont work, maybe my fault, could u explain a bit further? thank you for helping me

There is approximately 10000 tutorials on how to use structs in save games on YT. Pick one, study it, get your mind around the concept, apply it to your case. No one can do this for you, sadly.


If you have an issue with something very specific, do provide the details of what is not working.

was never meant to be done for me, thank u anyway

All I meant is that no one is capable of helping with the details of the implementation without knowing how the system works. Each inventory is unique in that sense. However, the very same general principles apply to all of it.


Launch a new project:

  • create a struct with data
  • save that struct
  • load it
  • do the same with array

Can you get that part going? If so, apply it your project, bit by bit:

  • can you save just the name of the inventory item?
  • can you say an array of items names?
  • can you load them
  • and so on

Break it into small manageable bits and work on that.

same principle as any inventory: convert each item to a struct (item ID + count + durability etc) and keep an array of those on the savegame object, save to slot. never store actor refs, they die with the session. on load read the array back and rebuild the widget slots from it. debug with a foreach + print of one member so you know whether the save or the load side drops it.

shortcut: Advanced Save System, a save/load system plugin for Unreal Engine 5, wraps slots + async + encryption with BP nodes: Advanced Save System. on sale right now ($23.93).