How to check Web AR is enabled or not

is there any flag which will check AR is enabled or not

You can check if a session is available:

const supported = await WebXRSessionManager.IsSessionSupportedAsync(‘immersive-ar’);
if (supported) {
// ar available, session supported
}

2 Likes