The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Android XR Extensions for Unity quickstart
Stay organized with collections
Save and categorize content based on your preferences.
Each feature includes a sample for you to use and play with code and scene
setups. This quickstart walks you through importing the Android XR Extensions
for Unity package and then configuring the face tracking sample.
Prerequisites
Before completing these steps, make sure you've completed the steps described in
Unity project setup.
Import packages
To load a Unity Package Manager package from a Git URL:
- In Window, open the Package Manager.
- Open the add menu in the Package Manager toolbar.
- In the options for adding packages, click the + (plus) button.
In the drop-down list, click Install package from git URL.

Enter the following URL:
https://github.com/android/android-xr-unity-package.git
Select Install.
Configure the face tracking sample
All samples, including this one, include a README file containing
instructions on how to configure and set up the project.
To import and configure the sample:
Go to Package Manager > In Project > Android XR Extensions for Unity.

Select the Samples tab. Find the Face Tracking sample and click Import.

Go to Edit > Project Settings > XR Plug-in Management.
In the Android tab, under Plug-in Providers, enable OpenXR.
Then, enable the Android XR (Extensions) feature group.

Go to Edit > Project Settings > XR Plug-in Management > OpenXR.
Enable Android XR: Face Tracking.

Under XR Plug-in Management > Project Validation, fix all OpenXR-related
issues. This helps configure your Player Settings.

In your Project, open the FaceTracking scene, located in Assets > Samples > Android XR Extensions for Unity > version > Face Tracking.

OpenXR™ and the OpenXR logo are trademarks owned
by The Khronos Group Inc. and are registered as a trademark in China,
the European Union, Japan and the United Kingdom.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-23 UTC."],[],[],null,["# Android XR Extensions for Unity quickstart\n\nEach feature includes a sample for you to use and play with code and scene\nsetups. This quickstart walks you through importing the Android XR Extensions\nfor Unity package and then configuring the face tracking sample.\n\nPrerequisites\n-------------\n\nBefore completing these steps, make sure you've completed the steps described in\n[Unity project setup](/develop/xr/unity/setup).\n\nImport packages\n---------------\n\nTo load a Unity Package Manager package from a Git URL:\n\n1. In **Window** , open the **Package Manager**.\n2. Open the add menu in the **Package Manager** toolbar.\n3. In the options for adding packages, click the **+** (plus) button.\n4. In the drop-down list, click **Install package from git URL**.\n\n5. Enter the following URL:\n\n https://github.com/android/android-xr-unity-package.git\n\n6. Select **Install**.\n\nConfigure the face tracking sample\n----------------------------------\n\nAll samples, including this one, include a README file containing\ninstructions on how to configure and set up the project.\n\nTo import and configure the sample:\n\n1. Go to **Package Manager** \\\u003e **In Project** \\\u003e **Android XR Extensions for Unity**.\n\n2. Select the **Samples** tab. Find the **Face Tracking** sample and click **Import**.\n\n3. Go to **Edit \\\u003e Project Settings \\\u003e XR Plug-in Management**.\n\n4. In the **Android** tab, under **Plug-in Providers** , enable **OpenXR**.\n\n Then, enable the **Android XR (Extensions) feature group** .\n5. Go to **Edit \\\u003e Project Settings \\\u003e XR Plug-in Management \\\u003e OpenXR**.\n\n6. Enable **Android XR: Face Tracking**.\n\n7. Under **XR Plug-in Management \\\u003e Project Validation**, fix all OpenXR-related\n issues. This helps configure your Player Settings.\n\n8. In your **Project** , open the **FaceTracking** scene, located in **Assets \\\u003e Samples \\\u003e Android XR Extensions for Unity \\\u003e *version* \\\u003e Face Tracking**.\n\n*** ** * ** ***\n\nOpenXR™ and the OpenXR logo are trademarks owned\nby The Khronos Group Inc. and are registered as a trademark in China,\nthe European Union, Japan and the United Kingdom."]]