docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackingSubsystem<TTrackable, TSubsystemDescriptor>

    Base class for subsystems that detect and track things in the physical environment. This type is deprecated. Derive from TrackingSubsystem with more type parameters.

    Inheritance
    Object
    Subsystem
    Subsystem<TSubsystemDescriptor>
    XRSubsystem<TSubsystemDescriptor>
    TrackingSubsystem<TTrackable, TSubsystemDescriptor>
    XRAnchorSubsystem
    XRDepthSubsystem
    XREnvironmentProbeSubsystem
    XRFaceSubsystem
    XRHumanBodySubsystem
    XRImageTrackingSubsystem
    XRObjectTrackingSubsystem
    XRParticipantSubsystem
    XRPlaneSubsystem
    XRRaycastSubsystem
    XRReferencePointSubsystem
    Inherited Members
    XRSubsystem<TSubsystemDescriptor>.OnStart()
    XRSubsystem<TSubsystemDescriptor>.OnStop()
    XRSubsystem<TSubsystemDescriptor>.OnDestroyed()
    XRSubsystem<TSubsystemDescriptor>.running
    XRSubsystem<TSubsystemDescriptor>.OnDestroy()
    XRSubsystem<TSubsystemDescriptor>.Start()
    XRSubsystem<TSubsystemDescriptor>.Stop()
    Subsystem<TSubsystemDescriptor>.SubsystemDescriptor
    Subsystem.Destroy()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class TrackingSubsystem<TTrackable, TSubsystemDescriptor> : XRSubsystem<TSubsystemDescriptor>, ISubsystem where TTrackable : struct, ITrackable where TSubsystemDescriptor : class, ISubsystemDescriptor
    Type Parameters
    Name Description
    TTrackable

    The trackable's data, often a blittable type to interop with native code.

    TSubsystemDescriptor

    The subsystem descriptor for the underlying subsystem

    Methods

    GetChanges(Allocator)

    Retrieves a set of changes (additions, updates, and removals) since the last time GetChanges(Allocator) was called. This is typically called once per frame to update the derived class's internal state.

    Declaration
    public abstract TrackableChanges<TTrackable> GetChanges(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator

    The Allocator to use when creating the NativeArrays in TrackableChanges<T>.

    Returns
    Type Description
    TrackableChanges<TTrackable>

    The set of changes since the last time this method was invoked.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023