How to convert Unity games to Cardboard games for Android/iOS ?

Hi, I’ve recently been exploring the new Cardboard SDK for Unity. I found Cardboard to be a really nice and cheap VR device.

So far, I’ve understood that for converting any game to a Cardboard - Android playable game, you need to replace the camera with the Cardboard SDK’s prefab MainCamera. But that’s of course not the whole story, we need to change a few things in the script too so that the controls are mapped to the phone’s sensors.
For this regard, can anyone provide me with the coding specifics? I am pretty new to Unity, I don’t have any prior game development experience with Unity, and I’m directly trying to make games for Cardboard, and trying to convert some exisitng games to Cardboard playable games which would then work on Android and iOS, both.

Thank you.

There is simply no drag and drop tool to convert it to Cardboard VR. Lucky enough for you I’m working on the same project for an organization. The first thing you need to do is download the Cardboard SDK from SDK de código abierto de Cardboard  |  Google for Developers and then import it to your existing project. Open the demo scene and create a prefab from the Cardboard game object in the hierarchy panel.

Drag the prefab t your scene and remove your previous camera game object. Run the game to see if the everything is in order, and while playing hold ALT key on windows and move the mouse pointer t simulate the gyroscope behavior of your phone.

Go to the Cardboard API reference and read about how to use it’s classes, methods, properties and fields from https://developers.google.com/cardboard/unity/reference