docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    • Configure a reference object library
    • AR Tracked Object Manager component

    Apple and ARKit are trademarks of Apple Inc., registered in the U.S. and other countries and regions.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)