Disable virtual reality through script

I have multiple levels in my application and the first one is a login section where the user will have to type on the keyboard.
I want to disable virtual reality support that is in the player settings for this section, after the user logs in and I load the next section I want to enable virtual reality support.
Is it possible?
Thanks in advance :)!

UnityEngine.VR.VRSettings.enabled = false;

http://docs.unity3d.com/ScriptReference/VR.VRSettings-enabled.html

1 Like

Thank you, works like a charm :slight_smile: