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 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:
- 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 Add package from git URL.
Enter a valid Git URL in the text box.
- For information about how to construct a valid Git URL, refer to Git URLs and extended syntax.
- See the Android XR Unity package contents on GitHub for examples of links.
Select Add.
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 > Google XR Extensions.
Select the Samples tab, and click Import for Face Tracking.
Go to Edit > Project Settings > XR Plug-in Management.
In the Android tab, under Plug-in Providers, enable OpenXR.
Switch to the Android platform tab.
Select Android XR (Extensions) Session Management.
Select Android XR: Face Tracking.
Under XR Plug-in Management > Project Validation, fix all OpenXR-related issues. This helps configure your Player Settings.
Open Samples > Google XR Extensions > FaceTracking > Facetracking.unity.