docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRBoundingBoxSubsystem.Provider

    The provider API for XRBoundingBoxSubsystem-derived classes to implement.

    Inheritance
    object
    SubsystemProvider
    SubsystemProvider<XRBoundingBoxSubsystem>
    XRBoundingBoxSubsystem.Provider
    Inherited Members
    SubsystemProvider<XRBoundingBoxSubsystem>.TryInitialize()
    SubsystemProvider<XRBoundingBoxSubsystem>.Start()
    SubsystemProvider<XRBoundingBoxSubsystem>.Stop()
    SubsystemProvider<XRBoundingBoxSubsystem>.Destroy()
    SubsystemProvider.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 abstract class XRBoundingBoxSubsystem.Provider : SubsystemProvider<XRBoundingBoxSubsystem>

    Methods

    GetChanges(XRBoundingBox, 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 abstract TrackableChanges<XRBoundingBox> GetChanges(XRBoundingBox defaultXRBoundingBox, Allocator allocator)
    Parameters
    Type Name Description
    XRBoundingBox defaultXRBoundingBox

    The default bounding box. You should use this to initialize the returned TrackableChanges<T> instance by passing it to the constructor TrackableChanges(int, int, int, Allocator, T).

    Allocator allocator

    An Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRBoundingBox>

    The changes to bounding boxes since the last call to this method.

    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)