docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveInventory

    RemoveInventory(string)

    This method will remove the Inventory with the given instance Id.

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

    The Id of the Inventory instance we want to remove.

    Returns
    Type Description
    bool

    Whether or not the Inventory was successfully removed.

    RemoveInventory(int)

    This method will remove the Inventory with the given Inventory Hash.

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

    The Hash of the Inventory instance we want to remove.

    Returns
    Type Description
    bool

    Whether or not the Inventory was successfully removed.

    RemoveInventory(Inventory)

    This method will remove the given Inventory.

    Declaration
    public static bool RemoveInventory(Inventory inventory)
    Parameters
    Type Name Description
    Inventory inventory

    The Inventory instance we want to remove.

    Returns
    Type Description
    bool

    Whether or not the Inventory was successfully removed.

    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)