> For the complete documentation index, see [llms.txt](https://help.imotions.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.imotions.com/lab/study-setup-and-design/virtual-reality/htc-vive-pro-eye/how-to-htc-vive-pro-eye-how-to-modify-your-unity-project-for-eye-tracking.md).

# How to: HTC Vive Pro Eye - How to modify your Unity Project for Eye Tracking

Modify a Unity project with the iMotions Unity package and SRanipal SDK to stream HTC Vive Pro Eye eye tracking data into iMotions Lab.

*This article describes how to set up Unity and iMotions in order to stream Eye Tracking data from the HTC Vive Pro Eye into iMotions.*

## \[1] Prerequisites

1. Please make sure to have unpacked, installed and connected the HTC Vive Pro Eye.
2. Install all of the programs / packages listed:
   1. [**Unity 2018.2**](https://download.unity3d.com/download_unity/a122f5dc316d/Windows64EditorInstaller/UnitySetup64-2018.2.21f1.exe), [**Unity 2019.4**](https://download.unity3d.com/download_unity/ffc62b691db5/Windows64EditorInstaller/UnitySetup64-2019.4.40f1.exe) or [**Unity 2020.3**](https://download.unity3d.com/download_unity/b805b124c6b7/Windows64EditorInstaller/UnitySetup64-2020.3.48f1.exe). We recommend using the **LTS (long term support) versions.**
   2. **Vive Pro Eye drivers** ([LINK](https://enterprise.vive.com/us/setup/vive-pro/))
   3. **Steam** and **SteamVR** ([LINK](https://store.steampowered.com/))
   4. **VIVE Eye Tracking SDK (Sranipal)**: download and unzip [SDK-v1.3.3.0.zip on GitHub](https://github.com/imotions/iMotions-UnityPlugin/blob/vive-pro-eye/sranipal-sdk/SDK-v1.3.3.0.zip) (389 MB).
   5. Download the correct **iMotions Unity Package** for your respective version of Unity from GitHub. Open the folder and download the `.unitypackage` file in it:
      * iMotions Unity package for **Unity 2018** (LTS versions recommended): [iMotions Vive Pro Eye Integration v1.2 on GitHub](https://github.com/imotions/iMotions-UnityPlugin/tree/vive-pro-eye/v1.2)
      * iMotions Unity package for **Unity 2019** and **2020** (LTS versions recommended): [iMotions Vive Pro Eye Integration v1.5 on GitHub](https://github.com/imotions/iMotions-UnityPlugin/tree/vive-pro-eye/v1.5)

**IMPORTANT NOTE:** Please make sure your computer's region settings are set to US English, or at least that your dot-comma settings coincide with English rules.

## \[2] Accept Eye Tracking capabilities of the HTC Vive Pro Eye

1. Start SteamVR and put on the HTC Vive Pro Eye.
2. From the System Dashboard in VR, select **Vive Pro Eye**.
3. Read and agree to the License Agreement. You must agree in order to be able to use eye tracking.

![EyeTracking\_Enable.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-8717e1f1030d4d87d7b7bb4f398cbe6b227a959e%2F57b2e9aa7f_eyetracking_enable.webp?alt=media)

## \[3] Configuration in Unity

1. Open Unity.
2. Create a new project or open your existing project.
3. If your project is not already using **.NET 4.0** please click "*Edit*" > "*Project Settings...*" > "*Player*". Under "*Configuration*", change the *API Compatibility Level\** to **.NET 4.x**.

   ![Unity\_HTCViveProEye\_1a.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-9d5428541e5f996fe78631c488e70748fa56b4a2%2F73efe02583_unity_htcviveproeye_1a.webp?alt=media)
4. Click "*File*" > "*Build Settings...*". Under "*PC, Mac and Linux Standalone*", and change the architecture from x86 into **x86\_64**.

   ![Unity\_HTCViveProEye\_2a.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b6e1ab7b45d75ced511b52594ced74b5b4fc8655%2Fa00d8b02da_unity_htcviveproeye_2a.webp?alt=media)
5. Click "*Assets*" > "*Import Package...*" > "*Custom Package*", and select the **iMotions Unity Package** from step 2.5 above (e.g., **iMotions-ViveProEye-integration-v1.5.unitypackage** in Unity 2019 and 2020).

   ![Unity\_HTCViveProEye\_3a.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7262515cddc990dea954860b56896c2d328fd76f%2F5ff424150a_unity_htcviveproeye_3a.webp?alt=media)
6. In the popup window, make sure that all items have been selected. Then click "*Import*".

   ![Unity\_HTCViveProEye\_4a.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-f7b736fef8d1846135e7ea23c77b3b1d329d425a%2Fea3fea9592_unity_htcviveproeye_4a.webp?alt=media)
7. Repeat the import with the **VIVE Eye Tracking SDK (Sranipal)** from step 2.4 above (e.g., **Vive SRanipal Vive-SRanipal-Unity-Plugin.unitypackage**).
8. Open the Asset Store. Find and import the package "**SteamVR Plugin**".

   ![Unity\_HTCViveProEye\_6.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c658ea2854fe97c84d8187ba3f43027e8433a5f6%2F8e2af70462_unity_htcviveproeye_6.webp?alt=media)
9. You will now find several additional folders in your Project Assets.

   ![Unity\_HTCViveProEye\_8.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-06022444a0571d7441aae6e853b2eecb4edc2bb8%2F21c1d6c26c_unity_htcviveproeye_8.webp?alt=media)
10. The quickest way to get something working is to use the exemplary iMotions Scene for Eye Tracking. Open the Asset folder **3SL/ViveSRIntergration-Extras/Example-SteamVR**. Select the prebuilt example scene and drag it into your Project Hierarchy.
11. Right-click onto the SampleScene and select "Remove Scene" so that only the iMotions Scene remains.

    ![Unity\_HTCViveProEye\_9.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-aff6a07cb4dff15e0fcfb410c313ff3305808cdf%2Fd743ec5dd2_unity_htcviveproeye_9.webp?alt=media)
12. You are now ready to go. Test the project by clicking on the play button. Please note that for proper data streaming, a Build of the project has to be generated, and the EXE has to be executed as standalone application. Reason for this is that the project is only displayed in full screen when run as executable Build.
13. To create a build, click "File" > "Build *Settings".* In the popup window, click "*Add Open Scenes*" and "*Build*". It might be necessary to accept any and all popup dialogs in order to get the Build right.

    ![Unity\_HTCViveProEye\_10.jpg](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-39795dc923ac1b9c98ab204231464bedeef6f6f7%2Fc9c0fe2ec6_unity_htcviveproeye_10.webp?alt=media)

## \[4] Configure iMotions

[See this article on how to add your study to iMotions](https://help.imotions.com/lab/study-setup-and-design/virtual-reality/how-to-set-up-and-conduct-a-vr-study-with-screen-recording-in-unity-and-imotions.md)

## \[5] Video Walkthrough

{% embed url="<https://www.youtube.com/watch?v=V8HjV9wNlkI>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.imotions.com/lab/study-setup-and-design/virtual-reality/htc-vive-pro-eye/how-to-htc-vive-pro-eye-how-to-modify-your-unity-project-for-eye-tracking.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
