Search Unity

VR mode on a per-scene basis?

Discussion in 'AR/VR (XR) Discussion' started by Wordsonplay, Nov 12, 2015.

  1. Wordsonplay

    Wordsonplay

    Joined:
    Apr 29, 2013
    Posts:
    21
    I'm developing a project which includes both a "VR mode" and a "Normal Mode", built in separate scenes, but it seems that VR support is an all-or-nothing thing. Is there any way to activate/deactivate it on a scene by scene basis?
     
  2. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    VRSettings.enabled should do the trick or you can set the Active Device using VRSettings.loadedDevice. Both of these can be used at runtime and you can do it while the scene is running, you don't have to switch scenes in order to Disable VR
     
    guru20 likes this.