Wrong view when import google cardboard sdk with Unity 6.0

Could anyone tell me how to set up google cardboard sdk with the newest Unity? When I import the sdk, the view looks


not like

The new Unity and new google cardboard sdk are so different from online tutorials. Please somebody help!!!

Google cardboard 1.50 does not support in-editor stereoscopic view anymore.
Btw unity 6.0 doesn’t exist so I assume you meant 5.6.x

For iOS use 5.6.0f3 or 5.6.1p2
The rest of the 5.6 versions are pretty much broken for iOS cardboard support

Hello my friend, thanks for the correction, my Unity version is 5.6.1f1, how do I change the version? Also, I found I need change some player setting in order to enable VR is that true.

Since google cardboard 1.5 does not support in-editor stereoscopic view, so I can only deploy to my phone and see what’s going on for my app?

Also when you mean broken, did you mean when you build the ios project it says
Apple Mach-O Linker Error?

No I think he is talking about a distortion in scene rendering on device. For the linker issue you are running into this most likely:

Google distributes the Cardboard Native Development Kit (NDK) for iOS through the Cocoapods library management system. Unity is integrated with a specific version of that Cardboard NDK from the Cocoapods manager and uses the NDK to create your XCode project. This means the resulting project is generated differently from a standard Unity project; Cocoapods creates a wrapping XCode workspace that contains the Unity project as well as a project for the Cardboard NDK library and its dependencies. Always make sure that you open and/or use the workspace and not just the project to avoid getting linker errors due to the missing libraries from Cocoapods.

Hi Joe,
Could you provide more detail about how to use Cocoapods?

Greg

You don’t need much detail to build. All you have to do is open XCode workspace rather than Xcode project and build from there. If this still seems confusing to you, hitting “Build and Run” instead of “Build” also starts building the XCode workspace.

1 Like

Thanks Joe! Your information helped me a lot!! I made it working!!!

Thank you so much Homeros and Joejo. Building from workspace fixed it !

Cheers,
b