Skip to content

Getting started

ChengNan Yang edited this page Apr 26, 2019 · 8 revisions

Setup Unity Editor

Vive Input Utility for Unity works in Unity Editor (v5.3.6 or newer), which is available on Unity Download Page. It is recommended to install the latest version to get better VR rendering performance.

Install plugins

  • 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, you can also import SteamVR plugin to get better support.

  • If your target device is Oculus, you can also import OVRPlugin to get better support.

Project settings

Go to Editor > preference > VIUSettings to open VIUSettings window and make sure your VR device included and checked in the supporting options. Notice that you may need to switch target platform, install related plugin or get correct version of Unity Editor to do so.

VR supported settings

First basic VR scene

After the steps above are done, you can start with creating a basic VR scene.

Just simply replacing the default Main Camera with ViveCameraRig prefab and it's done.

Adding ViveCameraRig Prefab

This prefab only create device model with tracking, for more advance usage, please reference the example scenes or find more docs on wiki page.

Example Scenes

You can find example scenes at Assets/HTC.UnityPlugin/ViveInputUtility/Examples