docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Equals

    Equals(object)

    Compares this raycast for equality with an object.

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

    The object to compare for equality.

    Returns
    Type Description
    bool

    True if obj is a XRRaycast and compares Equals(XRRaycast).

    Overrides
    ValueType.Equals(object)

    Equals(XRRaycast)

    Compares this raycast for equality with another raycast.

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

    The raycast with which to compare.

    Returns
    Type Description
    bool

    True if all fields of both raycasts are equal. Otherwise, false.

    Implements
    IEquatable<T>.Equals(T)
    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023