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?


1 Answer 1


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.

  • \$\begingroup\$ XRSettings.enabled = true; XRSettings.enabled = false; \$\endgroup\$
    – OC_RaizW
    Apr 26, 2018 at 13:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .