Class TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>
Base class for subsystems that detect and track things in the physical environment.
Inheritance
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>
TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>
Implements
Inherited Members
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnCreate()
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnStart()
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnStop()
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.OnDestroy()
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.subsystemDescriptor
SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>.provider
SubsystemWithProvider.OnStart()
SubsystemWithProvider.OnStop()
SubsystemWithProvider.OnDestroy()
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
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
Name | Description |
---|---|
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. |