missing GVRMain file in Unity

2019-04-10 08:17发布

I am trying to create a Google Cardboard app using Unity. The new SDK doesn't have GVRMain, so I used GVREditorEmulator instead. However, I can't "look around" in the project. I am using a Windows PC, and Unity 5.6

4条回答
贪生不怕死
2楼-- · 2019-04-10 08:57

Looks like Google updated its GoogleVR SDK and GvrViewerMain is replaced by GvrEditorEmulator. https://developers.google.com/vr/unity/release-notes

查看更多
放荡不羁爱自由
3楼-- · 2019-04-10 09:05

I was able to get around the problem by downloading an older version of the Google VR plugin for Unity that had the GVRMain file. I would love a solution for the new version though.

查看更多
家丑人穷心不美
4楼-- · 2019-04-10 09:09

There is no longer a need for GVRViewerMain, you simply configure the VR SDK in Player Settings > Other Settings > Virtual Reality SDKs: add Daydream and/or Cardboard as appropriate for your project. Your main camera will automatically become a VR camera since cardboard is now native to unity. Hope this helps.

查看更多
欢心
5楼-- · 2019-04-10 09:14

What you're most likely missing is the Camera script which has to talk to the Gvr Editor Emulator.

Click on the GvrEditorEmulator

In the inspector see Camera: None (Camera)

This is where your camera should be referenced.

查看更多
登录 后发表回答