docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventoryExchangeItem

    Represents a player's inventory item that was part of a purchase.

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

    Constructors

    InventoryExchangeItem(string, int, List<string>)

    Declaration
    [Preserve]
    [JsonConstructor]
    public InventoryExchangeItem(string id, int amount, List<string> playersInventoryItemIds)
    Parameters
    Type Name Description
    string id
    int amount
    List<string> playersInventoryItemIds

    Fields

    Amount

    The amount of these items that were used/rewarded to make the purchase.

    Declaration
    [Preserve]
    public int Amount
    Field Value
    Type Description
    int

    Id

    The configuration ID of this inventory item.

    Declaration
    [Preserve]
    public string Id
    Field Value
    Type Description
    string

    PlayersInventoryItemIds

    A list of ID's of the PlayersInventoryItem's that were used/rewarded in this purchase.

    Declaration
    [Preserve]
    public List<string> PlayersInventoryItemIds
    Field Value
    Type Description
    List<string>
    In This Article
    Back to top
    Copyright © 2024 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)