How to open a link without leaving XR experience

Hi, I would like to open a link from a self-hosted babylonjs page to another one, but without exiting the VR session on the Oculus Quest browser. It’s possible apparently but I can’t find an example or guide to make it work.

I’ve asked on github but I’m doing something wrong apparently, it doesn’t work automatically for me. I use this on my destination page:

try {
  var xr = await scene.createDefaultXRExperienceAsync({
       floorMeshes: [env.ground]
  } catch (e) {
     // no XR support

Thanks for your help!

Surprising enough, we just had a thread about this :slight_smile:

You will need to enable the feature in chrome://flags, and use our default XR experience. Here is the thread (and the working example)


Thanks for your answer, I can’t wait for this to be activated by default in Chrome!