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
Step 2: Calibrate 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.
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
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.
Congratulations! You’re now up and running with the Tobii XR SDK for Unity and can start developing with eye tracking in VR.
- Check out our Showcases section for demos and prototypes.
- Check out the Documentation page, or try out our Unity Examples.
- Read more about designing for eye tracking in our Learn section.