unity SteamVR Plugin导入后的两个错误的解决办法

在unity asset store中搜索 SteamVR Plugin,找到官方提供的插件。我当时下载到的版本是1.2.1的,下载完后导入到工程里,打开里面的样例场景(共3个),运行或停止运行时会明显卡顿,报错,其中一个错误:

Unity SteamVR: Failed to loadIVRRenderModels interface version IVRRenderModels_005

问题产生原因及解决方法(帖子):

I'm looking into said problem on Unity 5.5.2p2 and currentSteamVR addon. You'll experience it when SteamVR is not running, if yourPlayerSettings VR SDK is set to None (first) and you code manually startsOpenVR as ours does. The problem occurs, when Assets\SteamVR\Scripts\SteamVR_RenderModel.csattempts to touch OpenVR when OpenVR/SteamVR has not yet been initialized.Typically, this happens on scene load, whether at runtime or in editor,wherever the script becomes active and updates. This could possibly bemitigated by checking SteamVR.active and guarding in that script. Update() inthat script does some non-ideal things as well. I'll share when I have aworkable solution, but the appropriate Valve dev may want to chime in.
- thanks

I have a proposed fix to SteamVR\Scripts\SteamVR_RenderModel.cswhich also seems to fix the 'models disappearing on start' problem. I'llcontact Valve through support channels. You can find the file on my OneDrivehere, https://1drv.ms/u/s!AuNvJsOTKiC5kLslVnd9fGkYTeVfRg
- thanks

把贴子最后提供的文件下载下来替换掉原来的脚本即可SteamVR_RenderModel.cs

        

还有一个错误是初始化时错误,shared IPC connection error之类的,这个重启下Steam或者SteamVR,或者干脆重启下电脑即可。

你可能感兴趣的:(VR)