docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveItemsByCategory

    RemoveItemsByCategory(string)

    This will remove all InventoryItems that have the given Category by CategoryDefinition Id.

    Declaration
    public static void RemoveItemsByCategory(string categoryId)
    Parameters
    Type Name Description
    string categoryId

    The Id of the CategoryDefinition we are checking for.

    RemoveItemsByCategory(CategoryDefinition)

    This will remove all InventoryItems that have the given Category.

    Declaration
    public static void RemoveItemsByCategory(CategoryDefinition category)
    Parameters
    Type Name Description
    CategoryDefinition category

    The CategoryDefinition to remove.

    RemoveItemsByCategory(int)

    This will remove all InventoryItems that have the given Category by CategoryDefinition Hash.

    Declaration
    public static void RemoveItemsByCategory(int categoryHash)
    Parameters
    Type Name Description
    int categoryHash

    The Hash of the CategoryDefinition to remove.

    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)