docs.unity.cn
    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 Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 12 February 2021