ソースを参照

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

読み込み中…
キャンセル
保存