docs.unity.cn
    Show / Hide Table of Contents

    Class TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>

    Base class for subsystems that detect and track things in the physical environment.

    Inheritance
    Object
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>
    TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>
    XRAnchorSubsystem
    XRDepthSubsystem
    XREnvironmentProbeSubsystem
    XRFaceSubsystem
    XRHumanBodySubsystem
    XRImageTrackingSubsystem
    XRObjectTrackingSubsystem
    XRParticipantSubsystem
    XRPlaneSubsystem
    XRPointCloudSubsystem
    XRRaycastSubsystem
    Inherited Members
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnCreate()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnStart()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnStop()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnDestroy()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.subsystemDescriptor
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.provider
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.Start()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnStart()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.Stop()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnStop()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.Destroy()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.OnDestroy()
    UnityEngine.SubsystemsImplementation.SubsystemWithProvider.running
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public abstract class TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider> : SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>, ISubsystem where TTrackable : struct, ITrackable where TSubsystem : SubsystemWithProvider, new()
        where TSubsystemDescriptor : SubsystemDescriptorWithProvider where TProvider : SubsystemProvider<TSubsystem>
    Type Parameters
    Name Description
    TTrackable

    The trackable's data, often a blittable type to inter-operate with native code.

    TSubsystem

    Concrete subsystem deriving from TrackingSubsystem.

    TSubsystemDescriptor

    The subsystem descriptor for the underlying subsystem.

    TProvider

    Provider type for the TrackingSubsystem-derived 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
    Unity.Collections.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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, July 14, 2023