Inventory system with UMG

anyone know a tutorial to how to create an inventory system with UMG blueprint or can explain me in a “few words”?
a basic/simple concept of inventory system, with add item, create slot, ecc.ecc.
thanks.

There’s many many videos detailing inventory systems. Even from the devs.

But, the basic concept is you have a variable storing the inventory, and this variable is usually a struct array, since each index would be an item with different data, e.g stats, name, value, etc…

You use these structs to store item data, and you then use that item data with the UMG.

Example struct:

  • Mesh
  • Thumbnail
  • Name
  • Weight

Gameplay example: You have an item in world with a struct variable “info”. When you interact with this item, you can destroy it from the world, store the info in your inventory array, and use the “info” variable to have the item appear in your inventory widget. You would have a “slot” widget show the thumbnail, and an “info” widget show name and weight.

And since you have the info stored, you can very easily drop the item again.

thanks a lot.