docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRDepthSubsystem

    An abstract class that provides a generic API for low-level depth detection features.

    Inheritance
    object
    SubsystemWithProvider
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>
    TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>
    XRDepthSubsystem
    Implements
    ISubsystem
    Inherited Members
    TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.GetChanges(Allocator)
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnCreate()
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnStart()
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnStop()
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.OnDestroy()
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.subsystemDescriptor
    SubsystemWithProvider<XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.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
    [Obsolete("XRDepthSubsystem has been deprecated. Use XRPointCloudSubsystem instead (UnityUpgradable) -> UnityEngine.XR.ARSubsystems.XRPointCloudSubsystem", true)]
    public class XRDepthSubsystem : TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>, ISubsystem
    Remarks

    This class can be used to access depth detection features in your app via accessing the generic API. It can also be extended to provide an implementation of a provider which provides the depth detection data to the higher level code.

    Methods

    GetChanges(Allocator)

    Get the changes to point clouds (added, updated, and removed) since the last call to GetChanges(Allocator).

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

    An Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRPointCloud>

    TrackableChanges<T> describing the point clouds that have been added, updated, and removed since the last call to GetChanges(Allocator). The caller owns the memory allocated with Allocator.

    Overrides
    TrackingSubsystem<XRPointCloud, XRDepthSubsystem, XRDepthSubsystemDescriptor, XRDepthSubsystem.Provider>.GetChanges(Allocator)

    GetPointCloudData(TrackableId, Allocator)

    Retrieve point cloud data (positions, confidence values, and identifiers) for the point cloud with the given trackableId.

    Declaration
    public XRPointCloudData GetPointCloudData(TrackableId trackableId, Allocator allocator)
    Parameters
    Type Name Description
    TrackableId trackableId

    The point cloud for which to retrieve data.

    Allocator allocator

    The allocator to use when creating the NativeArrays in the returned XRPointCloudData. Allocator.Temp is not supported; use Allocator.TempJob if you need temporary memory.

    Returns
    Type Description
    XRPointCloudData

    A new XRPointCloudData with newly allocated NativeArrays using allocator. The caller owns the memory and is responsible for calling Dispose() on it.

    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)