I want to change my unity application per runtime to a "Vr-Mode" and then switch it back. Since the VR-Mode changed the camera behaviour and messes with the system i want to use i can not start my program with "project settings" where VR is not active.

Is this even possible?

Is there some kind of a "magic bool" somewhere which toggles the vr on / off?


You have to use these lib at first

using UnityEngine.VR;

and then in

void Start () { VRSettings.enabled = false; }

it will work for unity5.6 and further versions as well.

|improve this answer|||||
  • \$\begingroup\$ XRSettings.enabled = true; XRSettings.enabled = false; \$\endgroup\$ – OC_RaizW Apr 26 '18 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.