docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveItemsByDefinition

    RemoveItemsByDefinition(InventoryItemDefinition)

    This method will remove the Item that uses the given ItemDefinition.

    Declaration
    public static int RemoveItemsByDefinition(InventoryItemDefinition itemDefinition)
    Parameters
    Type Name Description
    InventoryItemDefinition itemDefinition

    The InventoryItemDefinition we want to remove.

    Returns
    Type Description
    int

    The amount of items that were removed.

    RemoveItemsByDefinition(string)

    This method will remove the Item that uses the InventoryItemDefinition with the given Hash.

    Declaration
    public static int RemoveItemsByDefinition(string definitionId)
    Parameters
    Type Name Description
    string definitionId

    The Id of the InventoryItemDefinition we want to remove.

    Returns
    Type Description
    int

    The amount of items that were 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)