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.
asked Dec 11 '15 at 06:53 PM in Blueprint Scripting
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.
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.
answered Dec 11 '15 at 07:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here