docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetTags

    GetTags()

    Returns an array of all TagAsset in this catalog.

    Declaration
    public TagAsset[] GetTags()
    Returns
    Type Description
    TagAsset[]

    An array of all TagAsset.

    Remarks

    Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetTags(ICollection<TagAsset>) instead.

    GetTags(ICollection<TagAsset>)

    Fills in the given target collection with all the TagAsset of this catalog. The target collection is cleared before being populated.

    Declaration
    public int GetTags(ICollection<TagAsset> target = null)
    Parameters
    Type Name Description
    ICollection<TagAsset> target

    The target containerof all the TagAsset instances.

    Returns
    Type Description
    int

    The number of TagAsset instances of 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)