ValveSoftware / unity-xr-plugin

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

OpenVR + HDRP Not Working #42

Open Guilhem-Pech opened 4 years ago

Guilhem-Pech commented 4 years ago

Hi, I just installed the UnityXR Plugin along the SteamVR interaction system on my HDRP project. I know that there is no full suport yet on HDRP so all the materials and stuff are just pink. But seeing your changelog, theoretically it still should start. My problem is that when I press the play button, the first time a continuous error is throwed : image The second time, Unity just silently crash ...

ary1111 commented 4 years ago

So for the materials to not be pink in HDRP you need to update the materials in the project or whichever ones you want to HDRP. (Unity Link for Upgrading Materials)

As for the error you are getting, that has been happening for me for quite some time and its one of those: keep resetting until it works (headset, Unity, computer). Unless you are trying to instantiate the VR camera after the first frame (then the error is warranted), you should be able to run the HDRP project using the OpenVR plugin. I get that error probably once for every 5 runs.