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

Confusing behaviour with auto deleted scripts on installation of OpenVR #982

Open oyagci opened 3 years ago

oyagci commented 3 years ago

I have had a rather frustrating bug for the last 2 days which was caused by a confusing behaviour during the install process of SteamVR.

SteamVR was not installing OpenVR.

Because I am working on a product which expects some users to not be able to use the internet to install any package. We are bundling the whole SteamVR package... or so I thought.

After investigating this problem I have found out that after the installation of OpenVR the install scripts are automatically deleted. Preventing any futur install if you ship the package as is.

The workaround is reimporting the package once more so that the scripts are present and not deleted.

nitz commented 2 years ago

@oyagci You just saved my sanity. I just spent far too long trying to figure out why I couldn't find types like HmdMatrix34_t, or ETrackingResult. I had kept deleting the SteamVR folder and re-importing getting stuck each time, which was getting me nowhere. I was even importing both directly from the asset store and the package on this repo, but perhaps something in Unity has changed that causes the install scripts not to run.

So, I had to manually install the OpenVR plugin, by performing these steps:

I'm not sure what's falling apart in just directly importing the package, but there's definitely something funky going on. (I'm currently on Unity 2020.3.22f1.)

dpggit commented 2 years ago

Replying to https://github.com/ValveSoftware/steamvr_unity_plugin/issues/982#issuecomment-964271381

I did that but didn't solve anything, i stil get the ETrackingResult errors and others

dpggit commented 2 years ago

Replying to https://github.com/ValveSoftware/steamvr_unity_plugin/issues/982#issue-987565772

Reinstalled steamvr package many times but i get errors anyways

CosmicElysium commented 1 year ago

Do not install version 3.0.0 of the OpenVR XR Plugin when using the SteamVR plugin. Leave OpenVR XR on version 1.1.4.