Comment on page
Inventory Settings
Support us as a GitHub Sponsor 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 GitHub Sponsors ... become a sponsor today!
accessed from within the SteamSettings.Client this houses inventory items and provides access to common values such as currency code and change events.
public class InventorySettings
public Currency.Code LocalCurrencyCode => get;
Returns the currency code for the local user as reported by Steam.
public string LocalCurrencySymbol => get;
Returns the currency symbol (£, $, €, etc.) for the local user's configured currency.
public List<ItemDefinition> items;
The list of items configured for this app
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
private void HandleEvent(InventoryChangeRecord arg0)
{
}
Then you would register the event such as:
SteamSettings.Client.inventory.EventChanged.AddListener(HandleEvent);
When you no longer need this handler you should remove it for example when the behviour using it is destroyed
void OnDestroy()
{
SteamSettings.Client.inventory.EventChanged.RemoveListener(HandleEvent);
}
Last modified 1mo ago