docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasInventory

    HasInventory(string)

    This method checks if an Inventory exists with the given Inventory Id.

    Declaration
    public static bool HasInventory(string inventoryId)
    Parameters
    Type Name Description
    string inventoryId

    The Id we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the Inventory is found in the InventoryManager.

    HasInventory(int)

    This method checks if an Inventory exists with the given Inventory Hash.

    Declaration
    public static bool HasInventory(int inventoryHash)
    Parameters
    Type Name Description
    int inventoryHash

    The Hash we are checking for.

    Returns
    Type Description
    bool

    True/False whether or not the Inventory is found in the InventoryManager.

    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)