- 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.
Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts
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)
Friday, December 9, 2016
Debug and Deploy to Android
I'm excited that Unity's business model changed and now it is free to deploy to Android.
They have some very good Setup Instructions for debugging and deploying.
Some things to note:
They have some very good Setup Instructions for debugging and deploying.
Some things to note:
- In installing the Android Studio, my SDK was installing here:
- C:\Users\**username**\AppData\Local\Android\android-sdk
- Create a new project
- Make sure to set the Bundle Identifier in:
- Update Player Settings > Other Settings > Bundle Identifier
If you want to Debug with your device, ensure it is connected via USB and click Build & Run.
If you want to deploy your game, just click Build. This will produce an APK file which you can transfer to your device.
On your device, find the file in a file browser, select it, and when Android asks you if you want to install, say yes. The game will launch and a generic icon will be added to your apps list.
Subscribe to:
Posts (Atom)