docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasTag

    HasTag(Tag)

    Tells whether or not the given tag is within this CatalogItem instance.

    Declaration
    public bool HasTag(Tag tag)
    Parameters
    Type Name Description
    Tag tag

    The Tag instance to search for.

    Returns
    Type Description
    bool

    Whether or not this CatalogItem instance has the specified Tag included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the tag is null.

    HasTag(string)

    Tells whether or not a Tag instance with the given tagKey is within this CatalogItem instance.

    Declaration
    public bool HasTag(string tagKey)
    Parameters
    Type Name Description
    string tagKey

    The identifier of a Tag instance.

    Returns
    Type Description
    bool

    Whether or not this CatalogItem instance has a Tag with the given tagKey included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the tagKey is null.

    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)