Closed BussinessInnovation closed 1 year ago
As mentioned here, AR takes priority over VR. As Oculus now supports both, AR is chosen.
Ok. Thanks! How could I force VR to be activated in the case of Oculus? From unity could?
I suggest you replace the line with the following to force immersive-vr :
navigator.xr.requestSession('immersive-vr', { optionalFeatures: ['local-floor', 'hand-tracking'] }).then(function (session) {
Thank you! I have already changed it. I've saved, restarted Unity, compiled and it's still detecting AR. Do I have to do something to compile the jslib?
You have nothing to do, the jslib is automatically included in the output binary. Try deleting your output directory before starting a new compilation so that you dont have incremental compilation but a complete compilation.
unfortunately it still detects AR.
I just tested this solution and it worked for me. Thanks!
In oculus browser not detect VR mode, only detect AR Mode.
How can I force the VR mode on the Oculus Quest and keep the AR mode enabled on the smartphone?
thx!