-
Notifications
You must be signed in to change notification settings - Fork 81
Getting started
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.
-
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.
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.
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.
This prefab only create device model with tracking, for more advance usage, please reference the example scenes or find more docs on wiki page.
You can find example scenes at Assets/HTC.UnityPlugin/ViveInputUtility/Examples
- Example 0.Tutorial
- Example 1.UGUI
- Example 2.2DDragDrop
- Example 3.3DDrag
- Example 4.Teleport
-
Exmaple 5.ColliderEvent
- Grab objects with controller
- Example 6.ControllerManagerSample
- Example 7.RoleBindingExmaple