docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveItem

    RemoveItem(InventoryItem)

    This method will remove the given Item.

    Declaration
    public static bool RemoveItem(InventoryItem item)
    Parameters
    Type Name Description
    InventoryItem item

    The Item instance we want to remove.

    Returns
    Type Description
    bool

    Whether or not the Item was successfully removed.

    RemoveItem(string)

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

    Declaration
    public static bool RemoveItem(string itemId)
    Parameters
    Type Name Description
    string itemId

    GameItemId Item instance we want to remove.

    Returns
    Type Description
    bool

    Whether or not the Item 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)