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
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.
来源:https://stackoverflow.com/questions/44135605/missing-gvrmain-file-in-unity