##System Setup:
-
Download Unity
http://www.unity3d.com -
Java Development Kit 8 (JDK)
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html -
Download OVR Unity Utilties
https://developer.oculus.com/downloads/game-engines/1.3.2/OVRPlugin_for_Unity_5/ -
Android Studio - SDK 5.0 and SDK Tools http://developer.android.com/sdk/installing/index.html
At the bottom of the splash screen you can access SDK Manager to install ADB
..or from cli
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install android-platform-tools
5. Get OSig file:
-
connect mobile device
-
adb devices
List of devices attached
ce0551e7 device
In this example the Device ID is ce0551e7.
- generate file:
https://developer.oculus.com/osig/
Store this signature file in a safe location. Whenever you want to allow an application to use VR functionality, place a copy of this file in your application’s assets folder then recompile and sign your APK.
- For native apps, place the generated signature file in:
Project/assets/
- For Unity apps, place the signature file in:
Project/Assets/Plugins/Android/assets/
##Development environment
git clone https://github.com/uxl/gearvr-workshop.git
cd gearvr-workshop
##Deploy to device
- In Unity: File>Build
adb install my.apk