Troubleshooting

DOM Overlay not displayed

DOM Overlay support is emulated in Variant Launch by hiding all other elements on the page other than the DOM Overlay root you specify.

For this reason, its best to use a root element that isn't directly created or managed by frameworks like react or vue.

Instead consider adding your managed framework component as a child of the DOM Overlay root, or using portals.

Place the overlay root directly under body and pass it as domOverlay.root when you request the session.

navigator.xr.requestSession('immersive-ar', {
  requiredFeatures: ['local'],
  optionalFeatures: ['dom-overlay'],
  domOverlay: { root: document.getElementById('ar-overlay') },
})
Previous
PlayCanvas and iframes