{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Interface IEconomyConfigurationApiClient | Economy | 3.3.0
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IEconomyConfigurationApiClient

    This class allows you to retrieve items from the global economy configuration as it is set up in the Unity Dashboard.

    Namespace: Unity.Services.Economy
    Assembly: solution.dll
    Syntax
    public interface IEconomyConfigurationApiClient

    Methods

    Name Description
    GetConfigAssignmentHash()

    Returns the cached config assignment hash.

    GetCurrencies()

    Gets the currencies from the cached configuration.

    GetCurrenciesAsync()

    Gets the Currencies that have been configured and published in the Unity Dashboard.

    GetCurrency(string)

    Gets a specific currency from the cached config.

    GetCurrencyAsync(string)

    Gets a Currency Definition for a specific currency.

    GetInventoryItem(string)

    Gets a specific inventory item from the cached config.

    GetInventoryItemAsync(string)

    Gets a InventoryItemDefinition for a specific currency.

    GetInventoryItems()

    Gets the inventory items from the cached configuration.

    GetInventoryItemsAsync()

    Gets the Inventory Items that have been configured and published in the Unity Dashboard.

    GetRealMoneyPurchase(string)

    Gets a specific real money purchase from the cached config.

    GetRealMoneyPurchaseAsync(string)

    Gets a RealMoneyPurchaseDefinition for a specific real money purchase.

    GetRealMoneyPurchases()

    Gets the real money purchases from the cached configuration.

    GetRealMoneyPurchasesAsync()

    Gets all the real money purchases currently configured and published in the Economy Dashboard.

    GetVirtualPurchase(string)

    Gets a specific virtual purchase from the cached config.

    GetVirtualPurchaseAsync(string)

    Gets a VirtualPurchaseDefinition for a specific virtual purchase.

    Note that this will also fetch the associated Inventory Items/Currencies associated with this purchase.

    GetVirtualPurchases()

    Gets the virtual purchases from the cached configuration.

    GetVirtualPurchasesAsync()

    Gets all the virtual purchases currently configured and published in the Economy Dashboard.

    Note that this will also fetch all associated Inventory Items/Currencies associated with the purchase.

    SyncConfigurationAsync()

    Gets the currently published Economy configuration and caches it.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)