ValveSoftware / unity-xr-plugin

OpenVR plugin for Unity's XR API
BSD 3-Clause "New" or "Revised" License
303 stars 64 forks source link

OpenVR Plugin works in Editor; Defaults to SteamVR background + no tracking on Build. #10

Closed charlicopter closed 3 years ago

charlicopter commented 4 years ago

Editor play with Vive HMD + wands, and Index Controllers work fine (except for trackers, which are not detected). But playing a build with OpenVR Plugin only detects the Lighthouse base stations. HMD defaults to SteamVR background environment.

Unity 2020.1.0b12

yaddatrance commented 4 years ago

I actually have this same problem with the latest LTS update of 2019.4.1f1, everything works in editor but I see the steam environment and a message saying its waiting for the app executable name.

IronWarrior commented 3 years ago

Also having this issue in 2019.4.4f1 LTS. There is a ton of code in OpenVRLoader.cs that only runs if it's in the Editor, but I can't find the corresponding code for builds (I'm not super familiar with OVR's loading process). Mostly looking to see where

In builds we use a different method (reading the asset manually)

this happens. No exceptions are thrown in the build, so is something just not being run?

1runeberg commented 3 years ago

Hi - @charlicopter @yaddatrance @IronWarrior - Sorry for the delay, can you confirm if you're using SteamVR Beta? We have had issues with builds if you're not using Beta. Another Preview should be up soon that should resolve this.

yaddatrance commented 3 years ago

I'm using the version linked here... https://github.com/ValveSoftware/unity-xr-plugin/releases/tag/installer (which was itself referred from https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.6.0b2)

IronWarrior commented 3 years ago

I wasn't using the beta before, but upgrading to it didn't resolve the issue. It sounds like yall have a handle on it, but if not here's a build I made off this project.

EDIT: Didn't realize the repo was updated along with being moved. I'll test out the latest to see if it works.

EDIT 2: Upgrading to preview 5 has resolved the issue for me.

zite commented 3 years ago

Thanks for the update