Class TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>
Base class for subsystems that detect and track things in the physical environment.
Inheritance
UnityEngine.SubsystemsImplementation.SubsystemWithProvider
UnityEngine.SubsystemsImplementation.SubsystemWithProvider<TSubsystem, TSubsystemDescriptor, TProvider>
TrackingSubsystem<TTrackable, TSubsystem, TSubsystemDescriptor, TProvider>
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
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 |
Returns
Type | Description |
---|---|
TrackableChanges<TTrackable> | The set of changes since the last time this method was invoked. |