CardBoard For Unity is unity3d plugin for Google cardboard system
It using cardboard jar file included google cardboard sample
Tested in Nexus 5
Simple Shooting Game (Magnetic function include) https://github.com/flashscope/CardBoard_Plugin_For_Unity/tree/master/CardBoardForUnity
Simple Ar Project https://github.com/flashscope/CardBoard_Plugin_For_Unity/tree/master/CardBoardARKit/CardBoardARKit
- you need export unity3d project by android project
-
add call method in activity (screen shot is not good to look plese check code)(Careful with SendMessage Class Name) https://github.com/flashscope/CardBoard_Plugin_For_Unity/blob/master/CardBoardForUnity/DebrisDefragmentation_Android/Debri_Defragmentation/src/com/limecolor/unity/card_board_for_unity/debris/UnityPlayerNativeActivity.java
-
add Android Manifest (for vibrate If you don't use, you don't need) https://github.com/flashscope/CardBoard_Plugin_For_Unity/blob/master/CardBoardForUnity/DebrisDefragmentation_Android/Debri_Defragmentation/AndroidManifest.xml
4. copy CameraControl.cs in to your unity3d project and change package name to yours https://github.com/flashscope/CardBoard_Plugin_For_Unity/blob/master/CardBoardForUnity/CardBoardForUnity/Assets/CardBoardLogics/Scripts/CameraControl.cs
add. If you using Unity Pro, use Fish Eye Shader! It gives more reality effect