A-frame“开始体验”纽扣 [英] A-Frame "start experience" button
问题描述
我想在A-Frame设计上创建类似按钮的启动体验。我的经验需要隐藏,直到您按下按钮,然后它出现
两种方法:
1)隐藏A帧场景
直到按下html按钮
这很简单。预先放置白色< div>
(通过设置较高的 z-index
)并将其隐藏(
Fiddle display:none )。
Fiddle 此处。
2)隐藏游戏中的体验内容
这有点难。使用按钮将 a相机
隐藏在白色球体中,单击按钮时将其隐藏。
提琴此处
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
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
这篇关于A-frame“开始体验”纽扣的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!