docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindItemsByCategory

    FindItemsByCategory(Category, ICollection<InventoryItem>)

    Gets items filtered with the specified category.

    Declaration
    public static int FindItemsByCategory(Category category, ICollection<InventoryItem> target = null)
    Parameters
    Type Name Description
    Category category

    The category used to filter the items.

    ICollection<InventoryItem> target

    The target collection where filtered items are copied

    Returns
    Type Description
    int

    The number of items copied

    FindItemsByCategory(Category)

    Gets items filtered with the specified category.

    Declaration
    public static InventoryItem[] FindItemsByCategory(Category category)
    Parameters
    Type Name Description
    Category category

    The category used to filter the items.

    Returns
    Type Description
    InventoryItem[]

    The filtered items.

    FindItemsByCategory(string, ICollection<InventoryItem>)

    Gets items filtered with the specified category.

    Declaration
    public static int FindItemsByCategory(string categoryId, ICollection<InventoryItem> target = null)
    Parameters
    Type Name Description
    string categoryId

    The inventory id used to filter the items.

    ICollection<InventoryItem> target

    The target collection where filtered items are copied

    Returns
    Type Description
    int

    The number of items copied

    FindItemsByCategory(string)

    Gets items filtered with the specified category.

    Declaration
    public static InventoryItem[] FindItemsByCategory(string categoryId)
    Parameters
    Type Name Description
    string categoryId

    The inventory id used to filter the items.

    Returns
    Type Description
    InventoryItem[]

    The filtered items.

    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)