docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindItemsByTag

    FindItemsByTag(TagAsset, ICollection<TItemAsset>)

    Fills in the given target collection with all TItemAsset instances of this catalog matching the given tag and returns their count. The target collection is cleared before being populated.

    Declaration
    public int FindItemsByTag(TagAsset tag, ICollection<TItemAsset> target = null)
    Parameters
    Type Name Description
    TagAsset tag

    The Tag instance used as a filter

    ICollection<TItemAsset> target

    The target container of all the matching TItemAsset instances.

    Returns
    Type Description
    int

    The number of TItemAsset instances matching the tag filter in this catalog.

    FindItemsByTag(string, ICollection<TItemAsset>)

    Fills in the given target collection with all TItemAsset instances of this catalog matching the TagAsset by its key and returns their count. The target collection is cleared before being populated.

    Declaration
    public int FindItemsByTag(string key, ICollection<TItemAsset> target = null)
    Parameters
    Type Name Description
    string key

    The identifier of the TagAsset instance used as a filter

    ICollection<TItemAsset> target

    The target container of all the matching TItemAsset instances.

    Returns
    Type Description
    int

    The number of TItemAsset instances matching the tag filter in this catalog.

    FindItemsByTag<TInheritedItemAsset>(TagAsset, ICollection<TItemAsset>)

    Fills in the given target collection with all TInheritedItemAsset instances of this catalog matching the given tag and returns their count. The target collection is cleared before being populated.

    Declaration
    public int FindItemsByTag<TInheritedItemAsset>(TagAsset tag, ICollection<TItemAsset> target = null) where TInheritedItemAsset : TItemAsset
    Parameters
    Type Name Description
    TagAsset tag

    The TagAsset instance used as a filter

    ICollection<TItemAsset> target

    The target container of all the matching TInheritedItemAsset instances.

    Returns
    Type Description
    int

    The number of TInheritedItemAsset instances matching the tag filter in this catalog.

    Type Parameters
    Name Description
    TInheritedItemAsset

    FindItemsByTag<TInheritedItemAsset>(TagAsset)

    Returns an array of all the TInheritedItemAsset instances of this catalog matching the given tag

    Declaration
    public TItemAsset[] FindItemsByTag<TInheritedItemAsset>(TagAsset tag) where TInheritedItemAsset : TItemAsset
    Parameters
    Type Name Description
    TagAsset tag

    The TagAsset instance used as a filter

    Returns
    Type Description
    TItemAsset[]

    The number of TInheritedItemAsset instances matching the tag filter in this catalog.

    Type Parameters
    Name Description
    TInheritedItemAsset

    FindItemsByTag<TInheritedItemAsset>(string, ICollection<TItemAsset>)

    Fills in the given target collection with all TInheritedItemAsset instances of this catalog matching the tag by its key and returns their count. The target collection is cleared before being populated.

    Declaration
    public int FindItemsByTag<TInheritedItemAsset>(string key, ICollection<TItemAsset> target = null) where TInheritedItemAsset : TItemAsset
    Parameters
    Type Name Description
    string key
    ICollection<TItemAsset> target

    The target container of all the matching TInheritedItemAsset instances.

    Returns
    Type Description
    int

    The number of TInheritedItemAsset instances matching the tag filter in this catalog.

    Type Parameters
    Name Description
    TInheritedItemAsset

    FindItemsByTag<TInheritedItemAsset>(string)

    Returns an array of all the TInheritedItemAsset instances of this catalog matching the TagAsset by its key

    Declaration
    public TItemAsset[] FindItemsByTag<TInheritedItemAsset>(string key) where TInheritedItemAsset : TItemAsset
    Parameters
    Type Name Description
    string key

    The TagAsset instance used as a filter

    Returns
    Type Description
    TItemAsset[]

    The number of TInheritedItemAsset instances matching the tag filter in this catalog.

    Type Parameters
    Name Description
    TInheritedItemAsset

    FindItemsByTag(TagAsset)

    Returns an array of all the TItemAsset instances of this catalog matching the given tag

    Declaration
    public TItemAsset[] FindItemsByTag(TagAsset tag)
    Parameters
    Type Name Description
    TagAsset tag
    Returns
    Type Description
    TItemAsset[]

    The number of TItemAsset instances matching the tag filter in this catalog.

    FindItemsByTag(string)

    Returns an array of all the TItemAsset instances of this catalog matching the TagAsset by its key

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

    The TagAsset instance used as a filter

    Returns
    Type Description
    TItemAsset[]

    The number of TItemAsset instances matching the tag filter in this catalog.

    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)