docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AddInventoryRequest

    AddInventoryRequest

    Inheritance
    object
    AddInventoryRequest
    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 AddInventoryRequest

    Constructors

    AddInventoryRequest(string, string, object)

    Initializes a new instance of the AddInventoryRequest class.

    Declaration
    [Preserve]
    public AddInventoryRequest(string inventoryItemId = null, string playersInventoryItemId = null, object instanceData = null)
    Parameters
    Type Name Description
    string inventoryItemId

    Resource ID of the inventory item. (required).

    string playersInventoryItemId

    A playersInventoryItemId for the item being created. If not given, Economy automatically generates the ID. An ID must be unique for a player..

    object instanceData

    Instance data to be saved against the new inventory item. Max size when serialized 5 KB..

    Properties

    InstanceData

    Instance data to be saved against the new inventory item. Max size when serialized 5 KB.

    Declaration
    [Preserve]
    public object InstanceData { get; set; }
    Property Value
    Type Description
    object

    Instance data to be saved against the new inventory item. Max size when serialized 5 KB.

    InventoryItemId

    Resource ID of the inventory item.

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

    Resource ID of the inventory item.

    PlayersInventoryItemId

    A playersInventoryItemId for the item being created. If not given, Economy automatically generates the ID. An ID must be unique for a player.

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

    A playersInventoryItemId for the item being created. If not given, Economy automatically generates the ID. An ID must be unique for a player.

    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)