Page cover image

Inventory Settings

Like what your seeing?

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!

Introduction

accessed from within the SteamSettings.Client this houses inventory items and provides access to common values such as currency code and change events.

Definition

public class InventorySettings

Fields and Attributes

LocalCurrencyCode

public Currency.Code LocalCurrencyCode => get;

Returns the currency code for the local user as reported by Steam.

LocalCurrencySymbol

public string LocalCurrencySymbol => get;

Returns the currency symbol (ยฃ, $, โ‚ฌ, etc.) for the local user's configured currency.

items

public List<ItemDefinition> items;

The list of items configured for this app

Events

EventChanged

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 updated