Hi everyone ! Is it possible to disable VR (and VR headset) by code to display forms on the computer screen and launch VR after pressing a UI button? Display at startup a configuration screen of the scene (with 2D UI) and launch the VR following the click of a button "RUN VR". I use Acer WMR Headset. It's Universal Windows project Starting scene : Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.UI; using UnityEngine.XR; public class MainForm : MonoBehaviour { [SerializeField] private Button _startRvBtn; void Awake() { StartCoroutine(StopVRRoutine()); _startRvBtn.onClick.AddListener(LoadRVScene); } IEnumerator StopVRRoutine() { XRSettings.LoadDeviceByName(""); yield return null; XRSettings.enabled = false; } void LoadRVScene() { SceneManager.LoadScene("VRScene"); } } And VR Scene : Code (CSharp): using System.Collections; using UnityEngine; using UnityEngine.XR; public class StartVR : MonoBehaviour { void Awake() { StartCoroutine(StartVRRoutine()); } IEnumerator StartVRRoutine() { XRSettings.LoadDeviceByName(new string[] { "OpenVR", "Oculus", "None" }); yield return null; XRSettings.enabled = true; } } Thank you for your help
I just responded in another thread about this topic. I had decided not to support switching while the app was running, tho I don't see why it wouldn't be possible. You can do this in WebVR with BabylonJS, for example. I haven't seen, or at least not noticed, many games that support this. I have a few that support VR and non-VR, but that choice is made on startup. You'd need to switch your camera, player controller, canvas and UI, and input system. I'm interested in hearing about your progress on this.