此处提供的代码在A-Frame 0.9.0中不起作用,但在0.6.1中完美运行:
https://aframe.io/docs/0.9.0/guides/building-a-basic-scene.html#animating-on-events
事实上,链接的示例(有效)使用0.6.1,即使文档是针对0.9.0:
https://aframe-basic-guide-with-environment.glitch.me/
我采用了完全相同的源并尝试使用0.9.0,场景加载,但没有mouseenter / mouseleave效果。
0.9.0是否需要其他东西?此功能已被删除吗?这是一个错误吗?
动画https://aframe.io/docs/0.9.0/components/animation.html删除了动画。我现在将更新该指南。谢谢!