docs.unity3d.com
    Show / Hide Table of Contents

    Class PlayerInventory

    Inheritance
    Object
    PlayerInventory
    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
    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, PlayerInventory.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 async 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, PlayerInventory.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 async Task DeletePlayersInventoryItemAsync(string playersInventoryItemId, PlayerInventory.DeletePlayersInventoryItemOptions options = null)
    Parameters
    Type Name Description
    String playersInventoryItemId
    PlayerInventory.DeletePlayersInventoryItemOptions options
    Returns
    Type Description
    Task

    GetInventoryAsync(PlayerInventory.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 async Task<GetInventoryResult> GetInventoryAsync(PlayerInventory.GetInventoryOptions options = null)
    Parameters
    Type Name Description
    PlayerInventory.GetInventoryOptions options
    Returns
    Type Description
    Task<GetInventoryResult>

    UpdatePlayersInventoryItemAsync(String, Dictionary<String, Object>, PlayerInventory.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 async 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>
    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