【问题标题】:missing GVRMain file in UnityUnity 中缺少 GVRMain 文件
【发布时间】:2017-10-23 10:53:13
【问题描述】:

我正在尝试使用 Unity 创建一个 Google Cardboard 应用程序。新的 SDK 没有 GVRMain,所以我使用了 GVREditorEmulator。但是,我不能在项目中“环顾四周”。我使用的是 Windows PC 和 Unity 5.6

【问题讨论】:

  • 面临同样的问题。观看了有关 VR 的教程和视频,在项目 GoogleVRForUnity 包中导入后到处都有 GVRMain。但是只有GVREditorEmulator
  • 大家好。我在 Unity 5.6 中导入了最新的 GVR1.5 SDK,它在我的系统上运行良好,我可以在编辑器中正常查看。只是为了确保.. GVREditorEmulator 像 GVRViewerMain 而不是像 GVRMain 那样工作,这意味着您可以使用默认相机并将这个预制件添加到您的层次结构中。它没有自带相机。

标签: unity3d google-cardboard virtual-reality


【解决方案1】:

您最有可能缺少的是必须与 Gvr Editor Emulator 对话的 Camera 脚本。

点击 GvrEditorEmulator

在检查器中看到相机:无(相机)

这是你的相机应该被引用的地方。

【讨论】:

  • 只有主摄像头,没用
【解决方案2】:

我能够通过下载具有 GVRMain 文件的 Unity 的旧版 Google VR 插件来解决此问题。不过,我希望为新版本提供解决方案。

【讨论】:

    【解决方案3】:

    Google 似乎更新了其 GoogleVR SDK,并且 GvrViewerMain 被 GvrEditorEmulator 取代。 https://developers.google.com/vr/unity/release-notes

    【讨论】:

    【解决方案4】:

    不再需要 GVRViewerMain,您只需在 Player Settings > Other Settings > Virtual Reality SDKs 中配置 VR SDK:根据您的项目添加 Daydream 和/或 Cardboard。您的主摄像头将自动成为 VR 摄像头,因为 Cardboard 现在是 unity 原生的。希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多