docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRNearFarPlanes

    Represents the near and far planes of a depth image.

    Implements
    IEquatable<XRNearFarPlanes>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public readonly struct XRNearFarPlanes : IEquatable<XRNearFarPlanes>

    Constructors

    XRNearFarPlanes(float, float)

    Constructor.

    Declaration
    public XRNearFarPlanes(float nearZ, float farZ)
    Parameters
    Type Name Description
    float nearZ

    The near plane, in meters.

    float farZ

    The far plane, in meters.

    Properties

    farZ

    The far plane, in meters.

    Declaration
    public float farZ { get; }
    Property Value
    Type Description
    float

    nearZ

    The near plane, in meters.

    Declaration
    public float nearZ { get; }
    Property Value
    Type Description
    float

    Methods

    Equals(object)

    Indicates whether this instance is equal to another object. Casts the other object to XRNearFarPlanes, then returns Equals(XRNearFarPlanes).

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

    An object to compare with this instance.

    Returns
    Type Description
    bool

    true if this instance is equal to obj. Otherwise, false.

    Overrides
    ValueType.Equals(object)

    Equals(XRNearFarPlanes)

    Indicates whether this instance is equal to another object of the same type.

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

    An object to compare with this instance.

    Returns
    Type Description
    bool

    true if this instance is equal to other. Otherwise, false.

    GetHashCode()

    Get a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    ValueType.GetHashCode()

    ToString()

    Generates a string representation of this instance suitable for debugging purposes.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string.

    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>
    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)