docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrExtent3Df

    Represents the extents of a 3D bounding box. The width, height, and depth values must be non-negative. Provided by XR_VERSION_1_1.

    Implements
    IEquatable<XrExtent3Df>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public readonly struct XrExtent3Df : IEquatable<XrExtent3Df>

    Constructors

    XrExtent3Df(float, float, float)

    Construct an instance.

    Declaration
    public XrExtent3Df(float width, float height, float depth)
    Parameters
    Type Name Description
    float width

    The width value.

    float height

    The height value.

    float depth

    The depth value.

    Properties

    depth

    The floating-point depth of the extent (z).

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

    height

    The floating-point height of the extent (y).

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

    width

    The floating-point width of the extent (x).

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

    Methods

    Equals(object)

    Compares for equality. Two instances are equal if their bits are exactly identical for the width, height, and depth properties.

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

    The other object.

    Returns
    Type Description
    bool

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

    Overrides
    ValueType.Equals(object)

    Equals(XrExtent3Df)

    Compares for equality. Two instances are equal if their bits are exactly identical for the width, height, and depth properties.

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

    The other instance.

    Returns
    Type Description
    bool

    true if the instances are equal. Otherwise, false.

    GetHashCode()

    Generates a unique hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    ValueType.GetHashCode()

    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)