docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRBoundingBoxSubsystem

    This subsystem provides information regarding the detection of 3D bounding boxes in the physical environment.

    Inheritance
    object
    SubsystemWithProvider
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>
    TrackingSubsystem<XRBoundingBox, XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>
    XRBoundingBoxSubsystem
    Implements
    ISubsystem
    Inherited Members
    TrackingSubsystem<XRBoundingBox, XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.GetChanges(Allocator)
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.OnCreate()
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.OnStart()
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.OnStop()
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.OnDestroy()
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.subsystemDescriptor
    SubsystemWithProvider<XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.provider
    SubsystemWithProvider.Start()
    SubsystemWithProvider.OnStart()
    SubsystemWithProvider.Stop()
    SubsystemWithProvider.OnStop()
    SubsystemWithProvider.Destroy()
    SubsystemWithProvider.OnDestroy()
    SubsystemWithProvider.running
    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 XRBoundingBoxSubsystem : TrackingSubsystem<XRBoundingBox, XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>, ISubsystem
    Remarks

    This is a base class with an abstract provider type to be implemented by provider plug-in packages. This class itself does not implement bounding box detection.

    Constructors

    XRBoundingBoxSubsystem()

    Do not invoke this constructor directly.

    Declaration
    public XRBoundingBoxSubsystem()
    Remarks

    If you are implementing your own custom subsystem Lifecycle management, use the SubsystemManager to enumerate the available XRBoundingBoxSubsystemDescriptors, then call XRBoundingBoxSubsystemDescriptor.Register() on the desired descriptor.

    Methods

    GetChanges(Allocator)

    Gets a TrackableChanges<T> struct containing any changes to detected bounding boxes since the last time you called this method. You are responsible to Dispose() the returned TrackableChanges instance.

    Declaration
    public override TrackableChanges<XRBoundingBox> GetChanges(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    An Allocator to use for the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRBoundingBox>

    The TrackableChanges<T>.

    Overrides
    TrackingSubsystem<XRBoundingBox, XRBoundingBoxSubsystem, XRBoundingBoxSubsystemDescriptor, XRBoundingBoxSubsystem.Provider>.GetChanges(Allocator)
    Remarks

    The TrackableChanges<T> struct returned by this method contains separate NativeArray_1 objects for the added, updated, and removed bounding boxes. These arrays are created using the Allocator type specified by allocator.

    Implements

    ISubsystem
    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)