aframe 是否允许用户将按钮或文本固定在屏幕上?

Does aframe allow a user to have a button or text fixed to the screen?

例如,右下角的启用 vr mide 按钮。当事件被触发时,我需要按钮和文本出现并固定在屏幕上。类似于 canvas 和按钮如何统一工作。

将按钮设置为相机的父级。然后他们将一直锁定在相机上。 使用位置组件移动按钮,它们将在本地坐标 space 中移动。 Parent/child 关系是通过嵌套实体创建的,就像这样。

<a-scene>
  <a-box>
    <a-sphere></a-sphere>
    <a-light></a-light>
  </a-box>
</a-scene>