docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindTag

    FindTag(string)

    Looks for a TagAsset, linked to this CatalogItemAsset instance, by its key.

    Declaration
    public TagAsset FindTag(string key)
    Parameters
    Type Name Description
    string key

    The key of the Tag to find.

    Returns
    Type Description
    TagAsset

    If found, returns the TagAsset instance, othewise null.

    Exceptions
    Type Condition
    ArgumentNullException

    The key cannot be null as a key cannot be 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)