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

Cannot build webgl on multiplatform project #869

Closed theDoubi125 closed 3 years ago

theDoubi125 commented 3 years ago

I work on a project where I must build a VR version using steamVR, and a webgl version that uses keyboard + mouse. The problem is that once I import the steamVR package, it adds automatically openVR, which is not handled in webgl but unity still tries to include it. The problem comes from the fact that the elements in the Runtime folder (openvr_api, ucrtbased, XRSDKOpenVR) from the openVR package do not exclude the WebGL platform, and as it is in a scoped package, the user cannot change it.

zite commented 3 years ago

Thanks for the report. Give this a try: https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.7.1RC

kisak-valve commented 3 years ago

Closing pending feedback.