The babylon UMD version includes all of our classes, including WebXR. However, nowhere in the code does a reference to WebXR exists, other than the fact that we have references to XR objects and classes. So I am not 100% sure how the webxr detection works here. If any page that has a reference to window.xruses XR, then there is little we can do about it for our UMD version.
I’ll anyhow dig in a bit more, making sure we are not running any XR code as side effects.
A propper solution for you would be to use the es6 package instead of UMD, bundle your own application, and make sure webxr is not imported and not included in your final bundle.
We can try changing that, of course. There used to be a need to set it to true when making the context, but there should be a way around it. I’ll investigate and let you know.
I would appreciate it if some community members tested the webxr demos in the snapshot - Babylon.js Playground , because I’m traveling currently and don’t have a device. Thanks in advance!