docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetInventories

    GetInventories()

    Returns an array of all inventories in the manager.

    Declaration
    public static Inventory[] GetInventories()
    Returns
    Type Description
    Inventory[]

    An array of all inventories in the manager.

    GetInventories(List<Inventory>)

    Fills the given list with all inventories in the manager. Note: this returns the current state of all inventories. To ensure that there are no invalid or duplicate entries, the list will always be cleared and 'recycled' (i.e. updated) with current data.

    Declaration
    public static void GetInventories(List<Inventory> inventories)
    Parameters
    Type Name Description
    List<Inventory> inventories

    The list to clear and fill with updated data.

    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)