Inventory Manager
Last updated
Last updated
Support us as a and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our ... become a sponsor today!
The Inventory Manager exposes the Changed event to the inspector which will alert you when the local user's inventory has changed.
This component also exposes commonly use fields from the settings. This is simply a pass through you do not need to use the Inventory Manager to access these. The purpose of this class is simply to simplify working with the API for user's that are uncomfortable with Scriptable Objects.
Triggered whenever the local user's inventory is updated from Steam.
You would add a listener on this event such as:
Assuming a handler in the form of
Then you would register the event such as:
When you no longer need this handler you should remove it for example when the behviour using it is destroyed
You would add a listener on this event such as:
Assuming a handler in the form of
Typically you would use the Unity Editor Inspector to attach a method to this event. You can however do it in code as well such as:
When you no longer need this handler you should remove it for example when the behaviour using it is destroyed
Returns the currency code as read from Steam
Returns the string symbol (ยฃ, $, โฌ, etc.) related to the currency code as read from Steam.
Returns the list of items configured for this app
Returns the sub-set of items configured for this app that are not hidden, not store hidden and that have a valid price configuraiton. This should be the same set of items visible to Steam's store.
This is fired whenever Steam client notifies your game of a MTX transaction completing and includes details about that transaction. You can use this along side the feature to know when a transaction starts and ends.