docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindTag

    FindTag(string)

    Looks for a Tag by its id.

    Declaration
    public Tag FindTag(string id)
    Parameters
    Type Name Description
    string id

    The key of the Tag instance to find.

    Returns
    Type Description
    Tag

    The requested Tag instance, or

    null
    if not found.
    Exceptions
    Type Condition
    ArgumentNullException

    If the id parameter 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)