在ios上无动静-aframe.io示例运行,相同(?)代码不行吗?有什么不同? [英] No movement on ios - aframe.io example runs, same(?) code not? What's the different?
问题描述
在IOS下,解决方案不再对运动做出反应。
Under IOS, the solution no longer reacts to movements.
我的解决方案已经有效,现在不再起作用。
My solution has worked and now is no longer working.
也无法使用带有Glitsch源代码的 hello world示例(请参见下文),但是如果您从a-frame起始页面调用该示例( https://aframe.io/examples/showcase/helloworld/ ),它可以正常工作。
Also the "hello world" example with the source code of Glitsch (see below) doesn't work anymore, but if you call the example from the a-frame start page (https://aframe.io/examples/showcase/helloworld/), it works.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello, WebVR!Test VR</title>
<meta name="description" content="Test VR">
<script src="https://aframe.io/aframe/dist/aframe-master.min.js" ></script>
</head>
<body>
<a-scene background="color: yellow">
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" shadow></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E" shadow></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow></a-cylinder>
<a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4" shadow></a-plane>
</a-scene>
</body>
</html>
有什么区别?
推荐答案
不幸的是,Chrome(m74 +)和Safari(iOS)现在默认提供12.2+),且传感器访问权限已禁用。用户必须手动启用以下设置:
Unfortunately, Chrome (m74+) and Safari (iOS 12.2+) now ship with sensor access disabled by default. The user has to enable manually on settings:
-
chrome:// flags /#enable-generic -传感器
在Chrome中
设置-> Safari->运动与Safari iOS中的定向访问
内容也必须通过https提供。
Content also must be served over https.
更多信息,请参见: https://github.com。 com / aframevr / aframe / issues / 3976
这篇关于在ios上无动静-aframe.io示例运行,相同(?)代码不行吗?有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!