{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Equals | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Equals

    Equals(NativeReference<T>)

    Returns true if the value stored in this reference is equal to the value stored in another reference.

    Declaration
    [ExcludeFromBurstCompatTesting("Equals boxes because Value does not implement IEquatable<T>")]
    public bool Equals(NativeReference<T> other)
    Parameters
    Type Name Description
    NativeReference<T> other

    A reference to compare with.

    Returns
    Type Description
    bool

    True if the value stored in this reference is equal to the value stored in another reference.

    Equals(object)

    Returns true if the value stored in this reference is equal to an object.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed object")]
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    An object to compare with.

    Returns
    Type Description
    bool

    True if the value stored in this reference is equal to the object.

    Overrides
    ValueType.Equals(object)
    Remarks

    Can only be equal if the object is itself a NativeReference.

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