Class ARTrackable<TSessionRelativeData, TTrackable>
A generic component for trackables. A "trackable" is a feature in the physical environment that can be detected and tracked by an XR device.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
public class ARTrackable<TSessionRelativeData, TTrackable> : ARTrackable where TSessionRelativeData : struct, ITrackable where TTrackable : ARTrackable<TSessionRelativeData, TTrackable>
Type Parameters
Name | Description |
---|---|
TSessionRelativeData | The raw, session-relative data type used to update this trackable. |
TTrackable | The concrete class which derives from ARTrackable<TSessionRelativeData, TTrackable>. |
Properties
Name | Description |
---|---|
destroyOnRemoval | If true, this component's |
pending | Pending means the trackable was added manually (usually via an |
sessionRelativeData | The session-relative data associated with this trackable. |
trackableId | The |
trackingState | The tracking state associated with this trackable. |
Methods
Name | Description |
---|---|
OnAfterSetSessionRelativeData() | Invoked just after the session-relative data has been set.
The |