##System Setup:

  1. Download Unity
    http://www.unity3d.com

  2. Java Development Kit 8 (JDK)
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  3. Download OVR Unity Utilties
    https://developer.oculus.com/downloads/game-engines/1.3.2/OVRPlugin_for_Unity_5/ custompackage

  4. 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

    manager

..or from cli

  1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. brew install android-platform-tools

5. Get OSig file:
  1. connect mobile device

  2. adb devices

    List of devices attached
    ce0551e7 device

In this example the Device ID is ce0551e7.
  1. 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

  1. git clone https://github.com/uxl/gearvr-workshop.git
  2. cd gearvr-workshop

##Deploy to device

  1. In Unity: File>Build
  2. adb install my.apk