Skip to content

VIVE Focus Porting Guide

ChengNan Yang edited this page Apr 24, 2018 · 54 revisions

Development Environment Setup

  1. Unity 5.6.3f1 with Android Support
  2. Android SDK (version 3859397)
    • sdkmanager --sdk_root=<android_sdk_home> --package_file=<pkg_file>
  3. Java JDK (jdk1.8.0_171)

Steps to build APK

  1. Download and import Vive Input Utility(v.1.8.2) from Asset Store Note: VIVE Focus requires Unity Editor 5.6.3 and above

    portingguide_01

  2. Import WaveVR SDK(version 2.0.32) Unity plugin

    • Go to Assets > Import Package > Custom Package… and select wavevr.unitypackage
    • 3 extra folders(ControllerModel/Plugins/WaveVR) will appear in project folder

    portingguide_02

    • Fix compile error due to WVR API updated in latest release In WaveVRModule.cs line 133, add (uint) as below,
      if (Interop.WVR_GetInputDeviceState(deviceType, INPUT_TYPE, ref buttons, ref touches, m_analogStates, 
      (uint)m_analogStates.Length))
      
  3. Go to Edit > Preferences… > VIU Settings, click Switch Platform button of VIVE Focus

    portingguide_03

  4. Import recommended WaveVR Settings

    portingguide_04


Troubleshooting

  1. Unity Editor did not install Android Support

    portingguide_05

    portingguide_06

  2. Setup External Tools in Unity Preferences

    portingguide_07


Reference