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
Subsystem<TSubsystemDescriptor>
XRSubsystem<TSubsystemDescriptor>
TrackingSubsystem<TTrackable, TSubsystemDescriptor>
Inherited Members
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 |
Returns
Type | Description |
---|---|
TrackableChanges<TTrackable> | The set of changes since the last time this method was invoked. |