Object tracking platform support
Find out which platforms support AR Foundation object tracking.
The AR Foundation XRObjectTrackingSubsystem is supported on the following platforms:
| Provider plug-in | Object tracking supported | Provider documentation |
|---|---|---|
| Google ARCore XR Plug-in | ||
| Apple ARKit XR Plug-in | Yes | Object tracking (ARKit) |
| Apple visionOS XR Plug-in | Yes | Object tracking (Apple visionOS XR Plug-in) |
| Microsoft HoloLens | ||
| Unity OpenXR: Meta | ||
| Unity OpenXR: Android XR | ||
| XR Simulation |
Check for object tracking support
Your app can check at runtime whether a provider plug-in supports object tracking on the user's device. Use the following example code to check whether the device supports object tracking:
void Start()
{
if (LoaderUtility
.GetActiveLoader()?
.GetLoadedSubsystem<XRObjectTrackingSubsystem>() != null)
{
// XRObjectTrackingSubsystem was loaded. Object tracking is supported.
}
}
Note
This example code assumes that your app has already initialized XR.
By default XR initializes automatically when your app starts, but this is configurable via Project Settings > XR Plug-in Management > Initialize XR on Startup. Refer to the XR Plug-in Management End-user documentation for more detailed information about managing the XR Plug-in lifecycle.
Additional resources
Apple and ARKit are trademarks of Apple Inc., registered in the U.S. and other countries and regions.