修复了 Aframe 中的 UI 元素 [英] fixed UI element in Aframe

查看:39
本文介绍了修复了 Aframe 中的 UI 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以为 Aframe 中的 UI 元素设置固定位置.当用户在环境中导航时,元素保持固定在同一位置?例如,我想为这个元素设置固定位置

Is it possible to set fixed position for UI elements in an Aframe. When the user navigates in the environment, the element remains fixed in the same place? For Example, I want to set fixed position for this element

<a-entity text="value: Hello World;"></a-entity>

推荐答案

使您的实体成为相机的子项:

Make your entities children of the camera:

举例说明

这篇关于修复了 Aframe 中的 UI 元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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