docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasTag

    HasTag(TagAsset)

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

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

    The TagAsset instance. to search for.

    Returns
    Type Description
    bool

    Whether or not this CatalogItemAsset instance has the specified TagAsset included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the tag is null.

    HasTag(string)

    Tells whether or not a TagAsset instance with the given key is within this CatalogItemAsset instance.

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

    The identifier of a TagAsset instance.

    Returns
    Type Description
    bool

    Whether or not this CatalogItemAsset instance has a Tag with the given key included.

    Exceptions
    Type Condition
    ArgumentNullException

    If the key 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)