浏览代码

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
     <body>
14
     <body>
15
 
15
 
16
         <!-- The AR scene -->
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
     <body>
14
     <body>
15
 
15
 
16
         <!-- The AR scene -->
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
     init()
488
     init()
489
     {
489
     {
490
         this._started = false;
490
         this._started = false;
491
+        this.el.setAttribute('xr-mode-ui', { enabled: false });
491
     },
492
     },
492
 
493
 
493
     play()
494
     play()

正在加载...
取消
保存