docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Equals

    Equals(object)

    Tests for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare against.

    Returns
    Type Description
    bool

    True if obj is of type XRRaycastHit and Equals(XRRaycastHit) also returns true; otherwise false.

    Overrides
    ValueType.Equals(object)

    Equals(XRRaycastHit)

    Tests for equality.

    Declaration
    public bool Equals(XRRaycastHit other)
    Parameters
    Type Name Description
    XRRaycastHit other

    The other XRRaycastHit to compare against.

    Returns
    Type Description
    bool

    True if every field in other is equal to this XRRaycastHit, otherwise false.

    Implements
    IEquatable<T>.Equals(T)
    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)