Using ARCore with Vuforia Engine

Beginning with the 7.2 version, Vuforia Engine can leverage Google's ARCore on devices that support it. Vuforia Engine can take advantage of ARCore for Ground Plane and Device Tracking (including Extended Tracking) features.

To take advantage of ARCore from within Vuforia Engine, there are some additional steps that developers need to go through which are outlined below. If the Android device does not support ARCore or the application is not configured properly, then Vuforia Engine will use its own plane-finding technology.

Unity

Starting with 8.5.8 it is no longer necessary to include the ARCore Library in a Unity project manually, instead just check the checkbox in the VuforiaConfiguration under the ARCore Requirement dropdown. During the Gradle build this will automatically include the version of the library as specified on the Vuforia Supported Versions page. To use a custom version of ARCore, uncheck this setting and include the right library in the Unity project.

  • NOTE: If the positional device tracker is enabled in the configuration, the ARCore setting is automatically set to “Optional”, but can be changed after that:

Native Android

Prerequisites

Note that ARCore support requires Android build Tools 26.0.2; these instructions have been tested against Android Studio 3.0.1 and Gradle 4.6.

Enabling ARCore

  1. Edit AndroidManifest.xml and add the following within the <application> element:
<!-- The following must be present to facilitate use of ARCore, if available -->
<meta-data android:name="com.google.ar.core" android:value="optional" />
  1. Edit (root) build.gradle and ensure that each of the repositories elements includes an entry for google():
repositories { 
    jcenter() 
    google() 
}
  1. Also in (root) build.gradle, ensure that the dependencies element references the 3.0.1 gradle tools:
classpath 'com.android.tools.build:gradle:3.0.1
  1. Edit app/build.gradle and confirm that the dependencies element references the ARCore client library:
dependencies {
    implementation 'com.google.ar:core:1.4.0' 
}