Skip to content

Getting started

Lawrence Wong edited this page Jun 19, 2017 · 8 revisions

Installation

  • Open a project in Unity Editor (5.3.6 or newer)
  • Import Vive Input Utility plugin from Unity Asset Store or download the latest release from GitHub
  • If your target device is Vive or other OpenVR compatible device, also import SteamVR plugin form Unity Asset Store
  • If your target device is Oculus, also import OVRPlugin from Oculus develop website

Creating First Scene

  • Remove default Main Camera and add the [CameraRig] prefab to setup a basic VR supported scene.

tutorial_01


  • Add VivePointers prefab into the scene.

tutorial_02


  • Create an UI button in hierarchy.

tutorial_03


  • Remove default event system object (Optional).
  • Select default canvas object.
  • Remove canvas scalar component (Optional).
  • Remove graphic raycaster component (Optional).
  • Set render mode to "World Space".

tutorial_04


  • Click "Add Component" to add the CanvasRaycastTarget script.

tutorial_05


  • Set rect transform on canvas and button to locate them into your VR camera's sight.

tutorial_06 tutorial_07


  • UGUI now catches events from your Vive controllers!
  • You can find this tutorial scene in Asset/HTC.UnityPlugin/ViveInputUtility/Examples/0.Tutorial

tutorial_08