#Exit VR

1 messages · Page 1 of 1 (latest)

modern vine
#

Hi... can anyone steer me to some advice about how to add an 'Exit VR' button to a Needle Tools scene? So that users can easily leave the VR environment if, for example, they're unfamiliar with hitting the Oculus button on their controller.

Many thanks in advance 🙂

sudden pagoda
#

Hi! So you can make a regular UI Canvas with a Button in it and that will work in VR as well. You'll have to probably come up with some follow code so that the UI floats in front of the user if needed.

#

For testing, you can also just make a regular cube, add a button component, and call endSession from the WebXR component:

modern vine
#

Awesome! Huge thanks for that, it’s much appreciated 🙂

lapis zodiac
#

Calling WebXr.exitXR() close the oculus browser on exiting. is there any way to just exit from vr session without closing the browser.

median zinc
#

This would be a Oculus browser bug if that happens - I think the latest oculus browser version minimizes the browser on exit. There's nothing we can do about it directly in Needle Engine. I think this is known to the devs however