docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InventoryExchangeItem

    InventoryExchangeItem

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

    Constructors

    InventoryExchangeItem(string, int, List<string>)

    Initializes a new instance of the InventoryExchangeItem class.

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

    ID of the inventory item. (required).

    int amount

    Number of player inventory items. (required).

    List<string> playersInventoryItemIds

    The playersInventoryItemIds for the player's items to be added or removed. (required).

    Properties

    Amount

    Number of player inventory items.

    Declaration
    [Preserve]
    public int Amount { get; set; }
    Property Value
    Type Description
    int

    Number of player inventory items.

    Id

    ID of the inventory item.

    Declaration
    [Preserve]
    public string Id { get; set; }
    Property Value
    Type Description
    string

    ID of the inventory item.

    PlayersInventoryItemIds

    The playersInventoryItemIds for the player's items to be added or removed.

    Declaration
    [Preserve]
    public List<string> PlayersInventoryItemIds { get; set; }
    Property Value
    Type Description
    List<string>

    The playersInventoryItemIds for the player's items to be added or removed.

    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)