HTC VIVE Pro Eye Development Guide

This page will give you a step-by-step walkthrough on how to set up your HTC VIVE Pro Eye and how to create a simple scene in Unity using the Tobii XR SDK.

In the finished scene, you will be able to highlight game objects by looking at them.


Step 1: Set up your headset

Follow the VIVE Pro Eye Setup guide.


Step 2: Calibrate for your eyes

The VIVE Pro Eye Setup guide will automatically start the calibration at the end of the setup flow.

If you need to re-calibrate or if you switch users, you can always open the calibration tool from the SteamVR dashboard.


Step 3: Import the Tobii XR SDK

Download the Tobii XR SDK for Unity and import it into your Unity project.

Remember to enable VR support in your Unity project. We support Unity 2018.2.5f1 or later.

If you have an older version of the Tobii XR SDK, remember to remove it before importing the new version to avoid conflicts.


Step 4: Download and Import the VIVE SRanipal SDK

Download the VIVE SRanipal SDK and import the .unitypackage into your Unity project.


Step 5: Configure the Tobii XR SDK

1) Open the Tobii XR Settings menu under Window > Tobii XR > Settings

2) Set the standalone eye tracking provider to Tobii or HTC Provider.

Read more about the providers and other settings in the Tobii XR Settings page.


Step 6: Add the TobiiXR_Initializer script to a GameObject

The TobiiXR_Initializer is an example script which calls the TobiiXR.Start() to initialize the the Tobii XR SDK.

If you switch to other scenes, each new scene requires a GameObject which has the TobiiXR_Initializer on it.


Step 7: Create a cube and place it somewhere in the scene


Step 8: Add the HighlightAtGaze script to the cube

The HighlightAtGaze component implements the IGazeFocusable interface, which will be called whenever the object receives or loses focus.


Step 9: Run the scene

By pressing play, you can now highlight the cube by looking at it.

If you want, you can add more objects that react to gaze to the scene in order to test and play around.


Next steps

Congratulations! You’re now up and running with the Tobii XR SDK for Unity and can start developing with eye tracking in VR.

If you want to know more, check out the Documentation page, or try out our Unity Examples.

You can also read our Design section if you want to know more about how to design eye tracking interactions in VR.