docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRBoundingBoxBuilder

    Defines a fluent API for constructing an XRBoundingBox.

    Inheritance
    object
    XRBoundingBoxBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public class XRBoundingBoxBuilder

    Constructors

    XRBoundingBoxBuilder()

    Construct an instance.

    Declaration
    public XRBoundingBoxBuilder()

    Methods

    Build()

    Build an output XRBoundingBox using all this builder's parameter values.

    Declaration
    public XRBoundingBox Build()
    Returns
    Type Description
    XRBoundingBox

    The built XRBoundingBox.

    Reset()

    Reset the instance to default values.

    Declaration
    public void Reset()

    WithClassifications(BoundingBoxClassifications)

    Set the classifications for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithClassifications(BoundingBoxClassifications classifications)
    Parameters
    Type Name Description
    BoundingBoxClassifications classifications

    The classifications.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithNativePtr(IntPtr)

    Set the native pointer for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithNativePtr(IntPtr nativePtr)
    Parameters
    Type Name Description
    IntPtr nativePtr

    The native pointer.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithParentId(TrackableId)

    Set the parent ID for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithParentId(TrackableId parentId)
    Parameters
    Type Name Description
    TrackableId parentId

    The parent ID.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithPose(Pose)

    Set the pose for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithPose(Pose pose)
    Parameters
    Type Name Description
    Pose pose

    The pose.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithSize(Vector3)

    Set the size for build XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithSize(Vector3 size)
    Parameters
    Type Name Description
    Vector3 size

    The size.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithTrackableId(TrackableId)

    Set the trackable ID for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithTrackableId(TrackableId trackableId)
    Parameters
    Type Name Description
    TrackableId trackableId

    The trackable ID.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    WithTrackingState(TrackingState)

    Set the tracking state for built XRBoundingBox instances.

    Declaration
    public XRBoundingBoxBuilder WithTrackingState(TrackingState trackingState)
    Parameters
    Type Name Description
    TrackingState trackingState

    The tracking state.

    Returns
    Type Description
    XRBoundingBoxBuilder

    This instance.

    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)