Tobii HTC VIVE Devkit

This page will give you a step-by-step walkthrough on how to set up your Tobii HTC VIVE Devkit 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.

Table of Contents

Step 1: Set up your headset

  1. Follow the VIVE Setup guide.

  2. Download and install the Tobii Eye Tracking Core Software.

Step 2: Calibrate for your eyes

Download the Legacy Mirrors Demo and run the Setup step to calibrate the eye tracker for your eyes.

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: Add the TobiiXR Initializer prefab to your scene

The prefab can be found in the Prefabs folder.

The TobiiXR_Initializer script attached to the prefab calls TobiiXR.Start() to initialize the the Tobii XR SDK.

Step 5: Configure the Tobii XR SDK

To configure the Tobii XR SDK, edit the fields of the TobiiXR Initializer prefab in your scene.

Make sure the Tobii provider is at the top of the Eye Tracking Providers list.

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

If you want to support running your application with an HTC VIVE Pro Eye, add the VIVE provider to the top of the Eye Tracking Providers list and enable the Support VIVE Pro Eye option.

This requires you to download and import the VIVE SRanipal SDK.

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

Step 7: 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 8: 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.

If you want to build your solution, make sure to build it for 64 bit.

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.