missing GVRMain file in Unity

拟墨画扇 提交于 2019-12-04 09:37:55

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

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.

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!