docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator ==

    operator ==(UnityObjectRef<T>, UnityObjectRef<T>)

    Returns true if two UnityObjectRef<T> are equal.

    Declaration
    public static bool operator ==(UnityObjectRef<T> left, UnityObjectRef<T> right)
    Parameters
    Type Name Description
    UnityObjectRef<T> left

    The first reference to compare for equality.

    UnityObjectRef<T> right

    The second reference to compare for equality.

    Returns
    Type Description
    bool

    True if the two references are equal.

    In This Article
    Back to top
    Copyright © 2025 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)