Class TrackingSubsystem<TTrackable, TSubsystemDescriptor>
Base class for subsystems that detect and track things in the physical environment.
Namespace: UnityEngine.XR.ARSubsystems
Syntax
public abstract class TrackingSubsystem<TTrackable, TSubsystemDescriptor> : Subsystem<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 |
Fields
m_Running
Implementing classes must set this value to reflect the running state of the subsystem
Declaration
protected bool m_Running
Field Value
Type | Description |
---|---|
Boolean |
Properties
running
true
if the Subsystem has been Start
ed and is currently running.
Declaration
public bool running { get; }
Property Value
Type | Description |
---|---|
Boolean |
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. |