I want to go into VR mode once I open the project, and I have tried vrhelper.enterVR() and engine.enterFullscreen(). But sometime I cannot render the full screen all the time via these two commands, and it shows me the following warning and errors:
console warn：Failed to execute ‘requestFullscreen’ on ‘Element’: API can only be initiated by a user gesture.
console error：Uncaught (in promise) TypeError: fullscreen error
I have also tried the following method, but it doesn’t fix the problem:
What I want is to jump from one VR project to another and keep VR mode instead of manually clicking VR button to re-enter.