docs.unity3d.com
    Show / Hide Table of Contents

    Class Costs

    The costs associated with a virtual purchase. This includes a list of currencies and inventory items that were required to make the purchase.

    Inheritance
    Object
    Costs
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Services.Economy.Model
    Syntax
    [Preserve]
    public class Costs

    Constructors

    Costs(List<CurrencyExchangeItem>, List<InventoryExchangeItem>)

    Declaration
    [Preserve]
    public Costs(List<CurrencyExchangeItem> currencies, List<InventoryExchangeItem> inventory)
    Parameters
    Type Name Description
    List<CurrencyExchangeItem> currencies
    List<InventoryExchangeItem> inventory

    Fields

    Currency

    A list of currencies and their amounts required to make the purchase.

    Declaration
    [Preserve]
    public List<CurrencyExchangeItem> Currency
    Field Value
    Type Description
    List<CurrencyExchangeItem>

    Inventory

    A list of player's inventory items and their amounts required to make the purchases.

    Declaration
    [Preserve]
    public List<InventoryExchangeItem> Inventory
    Field Value
    Type Description
    List<InventoryExchangeItem>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023