enable VR on mobile
Riffing off a question from @KristofferH
I have a mobile app and there is a button in the corner that I want to trigger a VR mode VRSettings.enabled
so you can put into cardboard (on IOs or Android)
in VR there is a button on the floor to go back to touchscreen mode
VRSettings.disabled
Doesn't work Does anyone have experience ?
Thanks
~be
Comment
Answer by Bentoon · Jul 04, 2017 at 08:10 PM
Something like This doesn't work
void OnMouseDown()
{
//if VR mode is off turn it on- if it is on turn it off
if (VRSettings.disabled)
{
VRSettings.enabled;
}
else if (VRSettings.enabled)
{
VRSettings.disabled;
}
}
Thanks !
~be