Unity Learn home
View Tutorial Content
Steps

Configuring Unity for AR Development

Tutorial
Intermediate
+0 XP
20 Mins
(286)
Summary
In this tutorial, we’ll configure Unity for AR development targeting iOS or Android.
Select your Unity version
Last updated: November 02, 2022
2019.4
2019.3
2019.2
2019.1
Language
English

1.Configuring Unity for AR Development

This tutorial has been verified using Unity 2019 LTS and AR Foundation 2.1.8
In this tutorial, we’ll configure Unity for AR development targeting iOS or Android. The minimum supported Unity version for AR development is 2019.1.
  1. In Build Settings, set your target platform to Android or iOS. Click Switch Platform to apply this change. Once Unity finishes importing assets and compiling scripts, click Player Settings.
  2. In the Inspector, click Other Settings. In the Identification section, give your project a unique identifier. On Android, this is the Package Name. On iOS, this is labeled “Bundle Identifier”.

2.Android Setup

1. In the Rendering section of Other Settings, disable Multithreaded Rendering (Figure 01).
Select image to expand
Figure 01: Enabling Multithreaded Rendering will cause a build using the AR packages to fail.
2. ARCore requires Android 8.0. In the Identification section of Other Settings, set Minimum API Level to at least Android 8.0 ‘Oreo’ (API level 26) (Figure 02). For more information on hardware compatibility, see the supported devices list.
Select image to expand
Figure 02: At the time of this writing, Android 8.0 is the minimum API version for AR development in Unity.

3.iOS Setup

If you want to build to iOS, open the Builder settings again and select iOS. Select “Switch Platform” to change to the iOS build settings.
Once all the required packages and plugins are installed, select Player Settings.
1. In the Configuration section of Other Settings, check Requires ARKit Support (Figure 03). This automatically populates the Camera Usage Description, which cannot be blank. You may wish to edit this text, but it isn’t necessary.
Select image to expand
Figure 03: iOS-specific settings for AR development
2. Set Target minimum iOS Version to 11.0, the required minimum at the time of this writing. If it’s set too low, you’ll receive a warning with the required minimum version.
3. Set Architecture to ARM64, as this is the only one supported by ARKit.

4.Installing AR packages using the Package Manager

1. Select Package Manager from the Window>Package Manager
2. Install AR Foundation (Figure 04). This is the cross-platform AR core for Unity.
Select image to expand
Figure 04: AR Packages can be found in the Package Manager.
3. If you’re developing for Android, you’ll also want the ARCore XR package. ARCore requires Android 8.0 or higher.
4. For iOS, install the ARKit XR Package.

5.Conclusion

Unity is now configured for AR development for iOS and/or Android.

Configuring Unity for AR Development
Configuring Unity for AR Development
General Tutorial Discussion
0
1
1. Configuring Unity for AR Development
0
2
2. Android Setup
0
0
3. iOS Setup
1
1
4. Installing AR packages using the Package Manager
0
0
5. Conclusion
0
0