How to trigger aframe's orientation modal?

时间:2019-04-17 00:04:16

标签: aframe

I am working on an aframe project, and I would like to trigger the orientation modal when the screen is vertical for iOS.

Is this a default aframe behavior?

If this is a default aframe behavior, then I must have disabled it. How do I re-enable this behavior?

1 个答案:

答案 0 :(得分:0)

Looks like the orientation modal is on by default, and it was turned off in my project.

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

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