I’m doing a module for Unity Editor 2021.1 where I need to enable VR/XR and use HMDs to operate with the virtual environment. Such module is supposed to work inside the editor space not in the playmode, which means that I want the module to enable VR/XR via script. Is there a way to achieve this?
I have the seen those, I even checked how EditorVR works. The only problem is that the way they did it, does not work anymore. The way they did it was simply by setting VRSettings.enabled = true;. This is now obsolete and thus does not work. I was looking for a new way (maybe using the namespace below) using Unity.XR;