0

大约 2 个月前,我是一个使用 Oculus Rift 的项目的开发人员。我现在收到了 Oculus DK 2,我想更新项目。我一直在考虑这可能是最简单的方法,但我想确保在采用最困难的方法之前我不会错过可以尝试的东西,这意味着清除像 OVRCamera 这样的 DK 1 对象及其所有链接,遍历所有场景并逐个组件更新所有内容,依此类推。

到目前为止我尝试过的(不关心愚蠢):

  1. 在 DK1 之上导入 DK2 包
  2. 从 Unity 中删除整个 DK1 的 OVR 文件夹并导入 DK2(再次创建 OVR 文件夹)
  3. 删除整个 DK1 的 OVR 文件夹并粘贴 DK2 的 OVR 文件夹,全部从资源管理器完成

所以,我在所有情况下都遇到了很多错误,我知道这有点明显,但仍然值得一试。

您还有其他聪明的想法可以尝试吗?

谢谢大家的关注。

4

2 回答 2

0

这对我有用:

1) 在您的 DK1 项目中打开一个空白场景。2) 删除Assets中的OVR文件夹 3) 删除Assets中Plugin文件夹中三个带有“oculus”字样的文件。

从 Oculus 网站导入“OculusUnityIntegration.unitypackage”。

需要从那里进行一些调整(更换角色控制器和类似的东西),但最终它奏效了!

于 2014-08-27T18:50:10.170 回答
0

I ended up with a similar problem to you. I fixed it by removing all the DK1 OVR files, then importing the Tuscany demo, then copying the OVRPlayerController from their scene into mine, then moved scripts from my old OVRPlayerController, to the new one. finished up with no errors relating to the PlayerController

于 2014-08-14T12:49:59.327 回答