-
Notifications
You must be signed in to change notification settings - Fork 82
Getting started
Lawrence Wong edited this page Jun 19, 2017
·
8 revisions
- 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
- Remove default Main Camera and add the [CameraRig] prefab to setup a basic VR supported scene.
- Add VivePointers prefab into the scene.
- Create an UI button in hierarchy.
- 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".
- Click "Add Component" to add the CanvasRaycastTarget script.
- Set rect transform on canvas and button to locate them into your VR camera's sight.
- UGUI now catches events from your Vive controllers!
- You can find this tutorial scene in Asset/HTC.UnityPlugin/ViveInputUtility/Examples/0.Tutorial