Using the Device Tracker in Unity

Vuforia Engine supports the development of space-aware AR experiences with the Positional Device Tracker.  The Device Tracker provides information about where the device is relative to the world.  It works well for AR applications that need to place content in the environment or want to provide additional robustness to target tracking with six degrees-of-freedom.

This article describes the use of the Device Tracker in Unity. If you are developing an application for native Android or iOS, refer to the Using the Device Tracker article.

Using the Positional Tracker

This section explains how to enable the Positional Device Tracker for AR applications. The Positional Device Tracker is required for the Ground Plane feature. In addition, the Positional Device Tracker enables Extended Tracking for all target types. Model Target tracking without Device Tracking is not recommended.

  1. Open your Vuforia Unity project.
  2. In the Windows menu, select Vuforia Configuration.
    The VuforiaConfiguration Inspector window opens.
  3. Expand the Device Tracker section and select Track Device Pose.
    This automatically starts the Positional Device Tracker in any scene that uses Vuforia functionality.
Vuforia Image

Android specific Device Tracker settings

When developing a Unity application for Android, enable ARCore on supported devices that have it installed. The following explains the options available in the Android Settings section:

By default, the ARCore Requirement dropdown is set to OPTIONAL. In this mode, Vuforia Engine uses VISLAM or SLAM on devices that do not support ARCore. Set the dropdown to REQUIRED to indicate that the app can only be installed on devices that support ARCore. Set the dropdown to DON’T USE to indicate that the app will not use ARCore.

Vuforia Image

If OPTIONAL or REQUIRED are selected, then ARCore is enabled and Vuforia Engine requires that the ARCore client library is packaged with the application so that ARCore functionality can be accessed at runtime. Select Include ARCore library to automatically include the latest supported library version. This is only supported when using Gradle to build the application.

If Include ARCore library is disabled, then the developer needs to package the ARCore client library with the app by including it in the Plugins/Android folder of the Unity project.

For more information, refer to the Enable ARCore article.