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
相关问题
- Unity - Get Random Color at Spawning
- Unity3D WebGL Headless not rendering
- How to fix NDK build error for HelloCardboard samp
- Unity3D loading resources after build
- Load Image from Stream/StreamReader to Image OR Ra
相关文章
- Programmatically setting and saving the icon assoc
- Omnisharp in VS Code produces a lot of warnings ab
- Call non-static methods on custom Unity Android Pl
- How can a game created in Unity can run on an Andr
- How to add Persistent Listener to Button.onClick e
- Placing an object in front of the camera
- Connecting Unity3d Android application to ActiveMQ
- How to mimic HoloLens 2 hand tracking wIth Windows
Looks like Google updated its GoogleVR SDK and GvrViewerMain is replaced by GvrEditorEmulator. https://developers.google.com/vr/unity/release-notes
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.
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.