docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindItemsByTag

    FindItemsByTag(Tag, ICollection<InventoryItem>)

    Gets items filtered with the specified tag.

    Declaration
    public static int FindItemsByTag(Tag tag, ICollection<InventoryItem> target)
    Parameters
    Type Name Description
    Tag tag

    The tag 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

    FindItemsByTag(Tag)

    Gets items filtered with the specified tag.

    Declaration
    public static InventoryItem[] FindItemsByTag(Tag tag)
    Parameters
    Type Name Description
    Tag tag

    The tag used to filter the items.

    Returns
    Type Description
    InventoryItem[]

    The filtered items.

    FindItemsByTag(string, ICollection<InventoryItem>)

    Gets items filtered with the specified tag.

    Declaration
    public static int FindItemsByTag(string key, ICollection<InventoryItem> target)
    Parameters
    Type Name Description
    string key

    The identifier of the tag 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

    FindItemsByTag(string)

    Gets items filtered items with the specified tag.

    Declaration
    public static InventoryItem[] FindItemsByTag(string key)
    Parameters
    Type Name Description
    string key

    The tag identifier 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)