docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlayerInventory

    Inheritance
    object
    PlayerInventory
    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
    Assembly: Unity.Services.Economy.dll
    Syntax
    [Obsolete("The interface provided by Economy.PlayerInventory has been replaced by EconomyService.Instance.PlayerInventory, and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public class PlayerInventory

    Methods

    AddInventoryItemAsync(string, AddInventoryItemOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerInventory.AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.AddInventoryItemAsync(string inventoryItemId, AddInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<PlayersInventoryItem> AddInventoryItemAsync(string inventoryItemId, PlayerInventory.AddInventoryItemOptions options = null)
    Parameters
    Type Name Description
    string inventoryItemId
    PlayerInventory.AddInventoryItemOptions options
    Returns
    Type Description
    Task<PlayersInventoryItem>

    DeletePlayersInventoryItemAsync(string, DeletePlayersInventoryItemOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerInventory.DeletePlayersInventoryItemAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.DeletePlayersInventoryItemAsync(string playersInventoryItemId, DeletePlayersInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task DeletePlayersInventoryItemAsync(string playersInventoryItemId, PlayerInventory.DeletePlayersInventoryItemOptions options = null)
    Parameters
    Type Name Description
    string playersInventoryItemId
    PlayerInventory.DeletePlayersInventoryItemOptions options
    Returns
    Type Description
    Task

    GetInventoryAsync(GetInventoryOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerInventory.GetInventoryAsync(GetInventoryOptions options) has been replaced by EconomyService.Instance.PlayerInventory.GetInventoryAsync(GetInventoryOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<GetInventoryResult> GetInventoryAsync(PlayerInventory.GetInventoryOptions options = null)
    Parameters
    Type Name Description
    PlayerInventory.GetInventoryOptions options
    Returns
    Type Description
    Task<GetInventoryResult>

    UpdatePlayersInventoryItemAsync(string, Dictionary<string, object>, UpdatePlayersInventoryItemOptions)

    Declaration
    [Obsolete("The interface provided by Economy.PlayerInventory.UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options) has been replaced by EconomyService.Instance.PlayerInventory.UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, UpdatePlayersInventoryItemOptions options), and should be accessed from there instead. This API will be removed in an upcoming release.", false)]
    public Task<PlayersInventoryItem> UpdatePlayersInventoryItemAsync(string playersInventoryItemId, Dictionary<string, object> instanceData, PlayerInventory.UpdatePlayersInventoryItemOptions options = null)
    Parameters
    Type Name Description
    string playersInventoryItemId
    Dictionary<string, object> instanceData
    PlayerInventory.UpdatePlayersInventoryItemOptions options
    Returns
    Type Description
    Task<PlayersInventoryItem>
    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)