Make editor auto start SteamVR or oculus.

I’d like to know if there’s a sane way to make the editor auto start SteamVR and use it for VR rendering while in editor.

I’m asking because I’m using Virtual Desktop, and making editor work through Virtual Desktop currently requires me to launch the editor through command line command.

Something along the lines of:

"C:\Program Files\Virtual Desktop Streamer\VirtualDesktop.Streamer.exe" "<UnityFolder>\2021.1.11f1\Editor\Unity.exe" -projectpath "\"<ProjectFolder>\VRTest\" -cloudEnvironment"

This way of starting it up is extremely cumbersome.

At the same time, Unreal Engine has no problem firing up SteamVR automatically (even with no HMD attached).

Can I replicate this behavior in unity?

Well!

Apparenlty, in 2021.2 I no longer need to dance through the hoops to have editor start VR preview in virtual desktop.

If I simply select OpenXR runtime in the project, the image shows in VirtualDesktop when I press play.
That’s assuming SteamVR is already running.

Marking this as solved