Search Unity

Resolved Make editor auto start SteamVR or oculus.

Discussion in 'VR' started by neginfinity, Dec 7, 2021.

  1. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,563
    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:
    Code (csharp):
    1.  
    2. "C:\Program Files\Virtual Desktop Streamer\VirtualDesktop.Streamer.exe" "<UnityFolder>\2021.1.11f1\Editor\Unity.exe" -projectpath "\"<ProjectFolder>\VRTest\" -cloudEnvironment"
    3.  
    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?
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,563
    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