The XR system supports multiple backends (see XR Overview), but currently only the WebXR standard is officially supported. Therefore, the compatibility of XR interactions is limited by device support for WebXR.
Before using XR features, refer to CanIUse to evaluate the runtime environment. Below is a summary of current WebXR compatibility:
In runtime, you can use the following code to check if the environment supports AR
or VR
:
// Check if AR is supported
xrManager.sessionManager.isSupportedMode(XRSessionMode.AR);
Before adding features, you can check compatibility using:
// Check if image tracking is supported
xrManager.isSupportedFeature(XRImageTracking);
Android supports certain experimental features, but they are disabled by default. You can enable them via flags:
Open Chrome on Android → Navigate to chrome://flags → Search for WebXR → Enable WebXR Incubations