Class TrackingSubsystem<TTrackable, TSubsystemDescriptor> | AR Subsystems | 3.0.0
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.

    Inheritance
    Object
    XRSubsystem<TSubsystemDescriptor>
    TrackingSubsystem<TTrackable, TSubsystemDescriptor>
    XRAnchorSubsystem
    XRDepthSubsystem
    XREnvironmentProbeSubsystem
    XRFaceSubsystem
    XRImageTrackingSubsystem
    XRParticipantSubsystem
    XRPlaneSubsystem
    Inherited Members
    XRSubsystem<TSubsystemDescriptor>.OnStart()
    XRSubsystem<TSubsystemDescriptor>.OnStop()
    XRSubsystem<TSubsystemDescriptor>.OnDestroyed()
    XRSubsystem<TSubsystemDescriptor>.running
    XRSubsystem<TSubsystemDescriptor>.Destroy()
    XRSubsystem<TSubsystemDescriptor>.Start()
    XRSubsystem<TSubsystemDescriptor>.Stop()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class TrackingSubsystem<TTrackable, TSubsystemDescriptor> : XRSubsystem<TSubsystemDescriptor> 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 © 2019 Unity Technologies
    Generated by DocFX