A-Frame “start experience” button

旧巷老猫 提交于 2019-12-24 22:56:34

问题


I want to create a start experience like button on my A-Frame design. My experience needs to hide until you press a button and then it appears


回答1:


Two approaches:

1) Hide the a-frame scene until a html button is pressed

This one is simple. Bring a white <div> up front (by setting up a high z-index), and hide it (display: none) when a button is clicked.

Fiddle here.

2) Hide the experience content "in-game"

This one is a bit harder. Hide the a-camera within a white sphere with a button, and hide the sphere, when the button is clicked.

Fiddle here



来源:https://stackoverflow.com/questions/52895498/a-frame-start-experience-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!