如何触发aframe的方向模态?

How to trigger aframe's orientation modal?

我正在做一个 aframe 项目,我想在 iOS 的屏幕垂直时触发方向模式。

这是默认的 aframe 行为吗?

如果这是默认的 aframe 行为,那么我一定是禁用了它。如何重新启用此行为?

看起来默认情况下方向模式是打开的,但在我的项目中它是关闭的。

// Issue
this.element.nativeElement.setAttribute('vr-mode-ui', 'enabled', 'false');

// Fix
this.element.nativeElement.setAttribute('vr-mode-ui', 'enabled', 'true');