A-frame“开始体验”纽扣 [英] A-Frame "start experience" button

查看:91
本文介绍了A-frame“开始体验”纽扣的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆