Unity supports development for headsets running 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.
The following sections outline Unity’s resources and packages to develop for Android XR devices.
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.
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.
To create a Android XR build profile:
In the Android XR Build Profile tab, you can configure the following settings derived from the Android XR build platform:
Refer to Android build platform for details on these options.
The Android XR build profile adds a new Android XR (Build Profile) Quality level (Project Settings > Quality Settings). You can modify the quality settings.
You may need to disable HDRhigh dynamic range
See in Glossary and post processing in the URP assets.
When you first switch to the Android XR build target or build profile, Unity enables the 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.
You can install the following packages from the Package Manager:
Tip: You can use the Unity OpenXR plug-inA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary and the Android OpenXR package together to develop a cross-platform application that has additional features tailored for Android XR devices.
To learn more about the packages Unity provides for XR development, refer to XR packages.
Google also provides packages to develop for Android XR in Unity. Refer to Google’s documentation for Android XR Developers to learn about the packages Google provides.
Note: These packages and related documentation are maintained by Google.
You can use the following templates as a starting point for your Android XR project:
Refer to Create an XR project to understand how to use templates as a starting point for your project.