docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ContainsTag

    ContainsTag(string)

    Tells whether or not this catalog contains a Tag instance with the specified id as key.

    Declaration
    public bool ContainsTag(string id)
    Parameters
    Type Name Description
    string id

    The key to find.

    Returns
    Type Description
    bool

    true if a Tag instance exists in this cataglog with the specified id, false otherwise

    Exceptions
    Type Condition
    ArgumentNullException

    If the id parameter is null.

    ContainsTag(Tag)

    Tells whether or not this catalog contains the specified Tag instance.

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

    The Tag to find.

    Returns
    Type Description
    bool

    true if a Tag instance exists in this cataglog with the specified id, false otherwise

    Exceptions
    Type Condition
    ArgumentNullException

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