Преглед на файлове

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

customisations
alemart преди 7 месеца
родител
ревизия
e1d858b05c
променени са 3 файла, в които са добавени 3 реда и са изтрити 2 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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 Целия файл

@@ -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()

Loading…
Отказ
Запис