The Android XR Extensions for Unity provide APIs for the following:
- Session Management: required for all Android XR Extensions' features.
- Object Tracking.
- Marker Tracking.
- QR Code Tracking.
- Scene Meshing.
- Unbounded Reference Space.
- Passthrough Composition Layer.
- Body Tracking (Experimental).
- Recommended Settings.
- Fine Eye.
- XR Streaming.
- Cubemap Light Estimation.
- Trackpad Gestures Interaction.
- Google Cloud.
- Geospatial.
- Battery State Display
- Multimodal Face Tracking
-
In Window > Package Manager, click the + button, and choose the Add package from tarball... option to import Android XR Extensions for Unity package.
-
In Project Settings > XR Plug-in Management, switch to Android tab, then check OpenXR as the plug-in provider at OpenXR runtime.
-
Under XR Plug-in Management > OpenXR, switch to Android tab, select Android XR (Extensions) feature group, or select individual features that you want to use at OpenXR runtime.
NOTE: Some of them might have additional requirements or configuration, refer to the README.md from each sample for more details. All samples use URP material so please ensure your project is using URP.
-
Under XR Plug-in Management > Project Validation, fix all OpenXR related issues. This will help to configure your Player Settings.
-
In Player > Android > Identification > Minimal API Level, select 24 or higher level. This is required by OpenXR Loader. Otherwise, it can fail the build.
-
Build your project targeting Android platform.