docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetInventory

    GetInventory(string)

    This will return the Inventory using the specified Inventory Id.

    Declaration
    public static Inventory GetInventory(string inventoryId)
    Parameters
    Type Name Description
    string inventoryId

    The Id of the Inventory we want.

    Returns
    Type Description
    Inventory

    The Inventory with the requested Id.

    GetInventory(int)

    This will return the Inventory using the specified Inventory Hash.

    Declaration
    public static Inventory GetInventory(int inventoryHash)
    Parameters
    Type Name Description
    int inventoryHash

    The Hash of the Inventory of the Inventory we want.

    Returns
    Type Description
    Inventory

    The Inventory with the requested Hash or null if not found.

    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)