Get started with targeting your ARCore Unity apps to Android.
This guide shows you how to set up your development environment and try out an ARCore sample app.
An ARCore supported device
A USB cable to connect your device to your development machine
Make sure to include Android Build Support during installation
The Universal Render Pipeline (formerly known as Ligthweight Render Pipeline or LWRP) is not supported by the ARCore SDK for Unity
When using Unity 2019, the following Unity packages are required:
- Multiplayer HLAPI
- XR Legacy Input Helper
Android SDK 7.0 (API Level 24) or later, installed using the SDK Manager in Android Studio
Get the ARCore SDK for Unity
- Download ARCore SDK for Unity 1.13.0 or later.
The SDK is downloaded as
Create a new project and import the SDK
Open Unity and create a new 3D project.
Unity 2019 only: Select Window > Package Manager and install the following packages:
- Multiplayer HLAPI (required by the CloudAnchors sample)
- XR Legacy Input Helpers (required by Instant Preview, which uses the
Import the ARCore SDK for Unity:
Select Assets > Import Package > Custom Package.
arcore-unity-sdk-1.14.0.unitypackagethat you downloaded.
In the Importing Package dialog, make sure that all package options are selected and click Import.
Open the sample scene
- In the Unity Project window, you can find the HelloAR sample in:
Configure project settings
- Go to File > Build Settings to open the Build Settings window.
- Select Android and click Switch Platform.
- In the Build Settings window, click Player Settings.
- In the Settings window, configure the following:
Setting Value Player Settings > Other Settings > Rendering Uncheck Auto Graphics API
If Vulkan is listed under Graphics APIs, remove it.
Player Settings > Other Settings > Package Name Create a unique app ID using a Java package name format.
For example, use
Player Settings > Other Settings > Minimum API Level Android 7.0 'Nougat' (API Level 24) or higher
(For AR Optional apps, the Minimum API level is 14.)
Player Settings > XR Settings > ARCore Supported Enable
Build and run the sample app
Enable developer options and USB debugging on your device.
Connect your device to your development machine.
In the Unity Build Settings window, click Build and Run.
Unity builds your project into an Android APK, installs it on your device, and launches it.
Move your device around until ARCore starts detecting and visualizing planes.
Tap a plane to put an Andy Android object on it.
- Step through the HelloAR code in the HelloAR Sample App Tour.
- Learn how to Enable ARCore in your app.
- Use Augmented Images to build apps that can respond to 2D images, such as posters or logos, in the user's environment.
- Use Cloud Anchors to create shared AR experiences across iOS and Android users.
- Review Runtime Considerations.
- Review Design Guidelines.