- First install the Android Studio to get the Android SDK on your computer
- Next, download the Google VR SDK for Unity
- Create a new Unity Project
- Assets > Import Package > Custom Package
- Navigate to where you downloaded the Google VR SDK, select package
- Deselect the following
- Google VR > Demos
- Plugins > Android > gvr-permissionsupport-release.aar
- Plugins > iOS
- Click Import button
- Go Ahead with "API Update Required"
- There is at least one script with a compilation error
- Find the script error in the console, or just open GvrVideoPlayerTexture.cs
- Line 595 - add a "yield" before the "return false;"
- Allow extra import packages to be loaded "GVRBackwardsCompatibility"
- Delete the Main Camera
- Add a GvrMain prefab to your scene (this is your VR camera)
- Add other elements to your scene as desired
- File > Build Settings
- Select Android
- Player Settings > Identification > Bundle Identifier (update this field)
- Build
- When asked about Android 6.0 Platform requirements, click Continue
- If it complains about "Merging Android Manifests", you'll need to find the gvr-permissionsupport-release.aar file and manually delete it.
Saturday, December 10, 2016
Google Cardboard Integration
Integration with Google Cardboard was not trivial, and I ran into several hiccups, but here is the process of getting Google Cardboard building and deployed with Unity (5.5.0f3)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment