Unreal Inventory Tools
We have created a custom Data Asset type for you that can simplify working with Steam Inventory Items. This lets you define each item type you have in your game as a Data Asset. To do this, first create a Data Asset for each item type your game will have.

Pick Class of Inventory Item Data Asset

Now, for each populate the Item ID for your item; this is the same ID you have in your JSON Item Definition file that you uploaded to Steamworks Developer Portal.

With your items now defined, you will want to "register" them with the Steam Tools Subsystem. This will allow our subsystem to update quantities and manage the internal state of the details for each item as changes happen through the game.

Now, as you perform actions on inventory, the results will be accounted for and tracked on each data asset. For example, when you call Get All Items, we will iterate over all Data Assets and update the details and quantities.

This means you can create variables in your Blueprints of type Inventory Item Data Asset, set the default to your predefined Data Asset and use it to get the item details for each item.

The Inventory Item Data object has a number of quality-of-life functions to make it easier to find a specific item's price, name, etc.

And the Data Asset type can be used with static functions such as Get Item Count to return the set of item details that match for a specific quantity... this is commonly needed when performing exchanges.

Last updated