Bladeren bron

A-Frame: disable components xr-mode-ui and loading-screen

customisations
alemart 7 maanden geleden
bovenliggende
commit
e1d858b05c
3 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 1
    1
      demos/hello-aframe/index.html
  2. 1
    1
      demos/hello-aframe/video.html
  3. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 1
demos/hello-aframe/index.html Bestand weergeven

@@ -14,7 +14,7 @@
14 14
     <body>
15 15
 
16 16
         <!-- The AR scene -->
17
-        <a-scene encantar="stats: true; gizmos: true">
17
+        <a-scene encantar="stats: true; gizmos: true" loading-screen="enabled: false">
18 18
 
19 19
             <!--
20 20
             +============================+

+ 1
- 1
demos/hello-aframe/video.html Bestand weergeven

@@ -14,7 +14,7 @@
14 14
     <body>
15 15
 
16 16
         <!-- The AR scene -->
17
-        <a-scene encantar="stats: true; gizmos: true">
17
+        <a-scene encantar="stats: true; gizmos: true" loading-screen="enabled: false">
18 18
 
19 19
             <!--
20 20
             +============================+

+ 1
- 0
plugins/aframe-with-encantar.js Bestand weergeven

@@ -488,6 +488,7 @@ AFRAME.registerComponent('encantar', ARComponent({
488 488
     init()
489 489
     {
490 490
         this._started = false;
491
+        this.el.setAttribute('xr-mode-ui', { enabled: false });
491 492
     },
492 493
 
493 494
     play()

Laden…
Annuleren
Opslaan