docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator ==

    operator ==(Tag, Tag)

    == Overload. If key and displayName match then the Tag instances are deemed equal.

    Declaration
    public static bool operator ==(Tag a, Tag b)
    Parameters
    Type Name Description
    Tag a

    A Tag instance to compare.

    Tag b

    The Tag instance to compare to.

    Returns
    Type Description
    bool

    true if both Tag are the same.

    Remarks

    Two null objects are considered equal.

    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)