Class XRObjectTrackingSubsystem
Base class for object tracking subsystems.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRObjectTrackingSubsystem : TrackingSubsystem<XRTrackedObject, XRObjectTrackingSubsystem, XRObjectTrackingSubsystemDescriptor, XRObjectTrackingSubsystem.Provider>, ISubsystem
Remarks
This subsystem allows real objects to be recognized in the environment. You must first specify a library of "reference objects" to search for. These reference objects are typically in a format specific to a particular implementation; see the documentation for the implementing subsystem for further instructions.
Constructors
Name | Description |
---|---|
XRObjectTrackingSubsystem() | Constructs an object tracking subsystem. Do not invoked directly; call |
Properties
Name | Description |
---|---|
library | The library of reference objects for which to scan. This must be set to non-null before calling OnStart(). |
Methods
Name | Description |
---|---|
GetChanges(Allocator) | Get changes to XRTrackedObjects (added, updated, and removed) since
the last call to this method. The caller owns the memory allocated with |
OnStart() | Starts scanning for the reference objects in library. |
OnStop() | Stops scanning for objects. |
Register<T>(string, Capabilities) | Registers an implementation of the XRObjectTrackingSubsystem. |
Register<TProvider, TSubsystemOverride>(string, Capabilities) | Registers a new implementation of the XRObjectTrackingSubsystem.
Allows overriding a derived type of |