Features
This package implements a set of AR Foundation features and also interfaces with additional OpenXR features from other XR packages.
Important
To use any feature in this package, you must enable the corresponding OpenXR Feature in the Android XR feature group. Otherwise, your app can't access these features. Refer to Project setup to understand how to enable Unity OpenXR: Android XR features.
AR features
This package implements the following AR features:
Feature | Description |
---|---|
Session | Enable, disable, and configure AR on the target platform. |
Camera | Render images from device cameras. |
Plane detection | Detect and track flat surfaces. |
Face tracking | Detect and track human faces. |
Ray casts | Cast rays against tracked items. |
Anchors | Track arbitrary points in space. |
Occlusion | Allow 3D objects to appear in front of or behind objects in physical space. |
Bounding Boxes | Detect and track objects as bounding boxes. |
Additional OpenXR features
When used with certain OpenXR features from other XR packages, Google's Android XR runtime exhibits unique behaviors, as explained in the following table:
Feature | Description | Unique behavior |
---|---|---|
Hand tracking (XR Hands) | Detect and track human hands. | Hand Tracking (Android XR) |
Hand mesh data | Use hand data for occlusion | Hand mesh data |
Foveated rendering (OpenXR) | Optimize rendering on XR devices. | Eye tracking and foveated rendering (Android XR) |
Multiview Render Regions (OpenXR) | Optimize rendering to prevent processing on areas of the screen not visible. | Multiview Render Regions (Android XR) |
Display Utilities | Get the supported display refresh rates for the device and request a display refresh rate. | Display Utilities (Android XR) |
Spacewarp | Use spacewarp to help maintain high frame rates. | Spacewarp (Android XR) |
Tip
If your app doesn't use a feature, it's best practice to disable that feature. In some cases doing so may improve your app's performance.