Version: Unity 6.3 LTS (6000.3)
Language : English
Develop for Android XR
Packages and templates for Android XR development

Android XR build platform and build profile

Understand how to configure the Android XRAn umbrella term encompassing Virtual Reality (VR), Augmented Reality (AR) and Mixed Reality (MR) applications. Devices supporting these forms of interactive applications can be referred to as XR devices. More info
See in Glossary
build platform and build profile.

Unity supports development for headsets running Android XR. In Unity 6.1 and later, you can use the Android XR platform and build profile in the Build ProfilesA set of customizable configuration settings to use when creating a build for your target platform. More info
See in Glossary
window.

The following sections outline Unity’s resources and packages to develop for Android XR devices.

Prerequisites

Select the Android XR build platform

You can use this build platform to configure settings for Android XR devices.

To select the Android XR build platform:

  1. Go to File > Build Profiles to open the Build Profiles window.
  2. In the Platforms list, select Android XR.
  3. Click the Switch Platform button.

Android XR build profile

By default, the Android XR platform shares Player settingsSettings that let you set various player-specific options for the final game built by Unity. More info
See in Glossary
with the Android build platform. You can use the Android XR build profile to override project settingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary
specifically for Android XR.

Add the Android XR build profile

To add an Android XR build profile:

  1. Open the Build Profiles window (File > Build Profiles), and select Add Build Profile to open the Platform Browser window.
  2. Select Android XR from the list of platforms.
  3. Select Add Build Profile, which creates an Android XR build profile and installs package dependencies.

Customize build profile settings

In the Android XR Build Profile tab, you can configure the following settings derived from the Android XR build platform:

  • Platform Settings: customizable build settings specific for the Android XR platform. These settings aren’t shared by the Android build platform. Refer to Android build platform for details on these options.
  • Player Settings, Graphics Settings, and Quality Settings: shared with the Android build platform by default. You can customize and override these settings for the Android XR platform. To override these settings, select the relevant override option from the Player Settings Overrides section to reveal the override options. Refer to Overrride settings with build profiles to learn more.

Android XR platform settings

  • The Android XR build profile adds a new Android XR (Build Profile) Quality level (Project Settings > Quality Settings). You can modify the quality settings.

  • When you first switch to the Android XR build target or build profile, Unity enables Android XR features and Foveated Rendering. These features remain enabled for the Android XR build target or build profile when you swap to a different build target.

Additional resources

Develop for Android XR
Packages and templates for Android XR development