docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ContainsItem

    ContainsItem(string)

    Returns whether or not an InventoryItem exists within the Wallet.

    Declaration
    public static bool ContainsItem(string itemDefinitionId)
    Parameters
    Type Name Description
    string itemDefinitionId

    The Id of the InventoryItemDefinition to find.

    Returns
    Type Description
    bool

    True/False whether or not the InventoryItem is within the Wallet.

    ContainsItem(InventoryItemDefinition)

    Returns whether or not an InventoryItem exists within the Wallet for specified InventoryItemDefinition.

    Declaration
    public static bool ContainsItem(InventoryItemDefinition itemDefinition)
    Parameters
    Type Name Description
    InventoryItemDefinition itemDefinition

    The InventoryItemDefinition to find.

    Returns
    Type Description
    bool

    True/False whether or not the InventoryItem is within the Wallet.

    ContainsItem(int)

    Returns whether or not an InventoryItem exists within the Wallet.

    Declaration
    public static bool ContainsItem(int itemDefinitionHash)
    Parameters
    Type Name Description
    int itemDefinitionHash

    The Hash of the InventoryItemDefinition we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the InventoryItem is within the Wallet.

    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)