diff --git a/examples/scripts/ui.mjs b/examples/scripts/ui.mjs index 4aaa12f..58f6417 100644 --- a/examples/scripts/ui.mjs +++ b/examples/scripts/ui.mjs @@ -94,8 +94,10 @@ document.addEventListener('DOMContentLoaded', async () => { // Add AR button if available if (app.xr.isAvailable('immersive-ar')) { const arButton = createButton({ - icon: ` - + icon: ` + + + `, title: 'Enter AR', onClick: () => app.xr.start(app.root.findComponent('camera'), 'immersive-ar', 'local-floor') @@ -106,8 +108,10 @@ document.addEventListener('DOMContentLoaded', async () => { // Add VR button if available if (app.xr.isAvailable('immersive-vr')) { const vrButton = createButton({ - icon: ` - + icon: ` + + + `, title: 'Enter VR', onClick: () => app.xr.start(app.root.findComponent('camera'), 'immersive-vr', 'local-floor') @@ -123,11 +127,15 @@ document.addEventListener('DOMContentLoaded', async () => { // Add fullscreen button if supported if (document.documentElement.requestFullscreen && document.exitFullscreen) { - const enterFullscreenIcon = ` - + const enterFullscreenIcon = ` + + + `; - const exitFullscreenIcon = ` - + const exitFullscreenIcon = ` + + + `; const fullscreenButton = createButton({