ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.03k stars 255 forks source link

Overlay only build with OpenVR native support enabled? #143

Open fragmentvr-dev opened 5 years ago

fragmentvr-dev commented 5 years ago

It seems that if you enable unity's native virtual reality support in the player settings you can't build an overlay only application. Is there any way around this?

dantman commented 4 years ago

Unity initializes OpenVR as an scene application when VR support is enabled. In order to use Unity's native virtual reality support Unity itself would have to be updated to fully support overlay applications (initialize as overlay application and provide an overlay API).

But you don't actually need Unity's native VR support to build an overlay. None of the Unity XR APIs are useful for building an overlay application. The SteamVR Unity Plugin already has all the APIs you need built-in.

The problem there of course is you need to run the SteamVR Unity plugin without enabling Unity's VR support. Which the plugin doesn't currently allow and is the goal of #108 and #336.