Explorar el Código

Small change

customisations
alemart hace 7 meses
padre
commit
e72382941f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      plugins/aframe-with-encantar.js

+ 2
- 2
plugins/aframe-with-encantar.js Ver fichero

@@ -183,7 +183,8 @@ AFRAME.registerSystem('ar', Object.assign(ARBaseSystem(), {
183 183
         }
184 184
 
185 185
         // initial setup
186
-        scene.setAttribute('vr-mode-ui', { enabled: false });
186
+        scene.setAttribute('xr-mode-ui', { enabled: false });
187
+        scene.setAttribute('vr-mode-ui', { enabled: false }); // deprecated
187 188
         scene.setAttribute('embedded', true);
188 189
         scene.setAttribute('renderer', { alpha: true });
189 190
 
@@ -488,7 +489,6 @@ AFRAME.registerComponent('encantar', ARComponent({
488 489
     init()
489 490
     {
490 491
         this._started = false;
491
-        this.el.setAttribute('xr-mode-ui', { enabled: false });
492 492
     },
493 493
 
494 494
     play()

Loading…
Cancelar
Guardar