docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRDepthSubsystem.Provider

    The interface that each derived class must implement.

    Inheritance
    object
    SubsystemProvider
    SubsystemProvider<XRDepthSubsystem>
    XRDepthSubsystem.Provider
    Inherited Members
    SubsystemProvider<XRDepthSubsystem>.TryInitialize()
    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 XRDepthSubsystem.Provider : SubsystemProvider<XRDepthSubsystem>

    Methods

    Destroy()

    Called when the subsystem is destroyed. Stop() will be called first if the subsystem is running.

    Declaration
    public override void Destroy()
    Overrides
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRDepthSubsystem>.Destroy()

    GetChanges(XRPointCloud, Allocator)

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

    Declaration
    public abstract TrackableChanges<XRPointCloud> GetChanges(XRPointCloud defaultPointCloud, Allocator allocator)
    Parameters
    Type Name Description
    XRPointCloud defaultPointCloud

    The default point cloud. This should be used to initialize the returned NativeArrays for backwards compatibility. See TrackableChanges(void*, int, void*, int, void*, int, T, int, Allocator).

    Allocator allocator

    An Allocator to use when allocating the returned NativeArrays.

    Returns
    Type Description
    TrackableChanges<XRPointCloud>

    TrackableChanges<T> describing the reference points that have been added, updated, and removed since the last call to GetChanges(XRPointCloud, Allocator). The changes should be allocated using allocator.

    GetPointCloudData(TrackableId, Allocator)

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

    Declaration
    public abstract 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.

    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.

    Start()

    Called when the subsystem starts. Will not be called again until Stop().

    Declaration
    public override void Start()
    Overrides
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRDepthSubsystem>.Start()

    Stop()

    Called when the subsystem stops. Will not be called before Start().

    Declaration
    public override void Stop()
    Overrides
    UnityEngine.SubsystemsImplementation.SubsystemProvider<UnityEngine.XR.ARSubsystems.XRDepthSubsystem>.Stop()
    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)