> 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/varjo/varjo-xr4-set-up-how-to-get-system-and-unity-project-ready-for-imotions.md).

# Varjo XR4 set-up: How to get system and Unity project ready for iMotions

Prepare a Varjo XR4 headset and a Unity 2022.3 or Unity 6 project to live-stream eye tracking and gaze and touch events into an iMotions Lab VR study.

*This article will guide you through the steps needed to integrate your Unity content to live stream eye-tracking data from your Varjo XR4. This process is also backward-compatible for older devices, but not targeted for versions of unity older than 2022.3*

Note:

* In this article, we will guide you through the essential steps required to prepare for an iMotions study using Varjo Unity.
* If you want to modify code, you can only do so for programs that you have developed yourself or purchased from the Unity marketplace. It is not possible to modify pre-existing VR applications like VR games from Steam (such as Beat Saber), which can only be eye-tracked through the post-import method. If you are doing a post-import, you can refer to this article for further information.
* If you are using your built in 360 media player for Varjo headset see this [link](https://help.imotions.com/lab/study-setup-and-design/virtual-reality/varjo/how-to-setup-a-360-video-study-with-varjo.md).

### Prerequisites

* Varjo headset XR4
* A computer that meets the minimum recommended specifications for CPU and GPU for the Varjo headset you have.
* Follow the instructions on the Varjo website to set up your PC and environment, and download the required software.
  * You have installed all the hardware including base stations(if required), controllers, and computers.

    <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Accessories are not included with the basic Varjo purchase. Contact your CSM or support if you need advice on purchasing. If you have accessories from a previous VR setup such as a Vive, you may reuse them if they are supported. See <a href="https://www.vive.com/us/support/vive-pro-hmd/category_howto/planning-your-play-area.html">recommendations for VR area/setup</a>.</p></div>
  * SteamVR application available via [Steam](https://store.steampowered.com/) store.
  * Varjo Base, which you can download directly from [Varjo Download Page](https://varjo.com/downloads/) You must have version 4.6 or newer. If it is an older version, you have to fully uninstall it and redownload it.
  * It's important to ensure that the Unity version you are using matches the iMotions Varjo SDK version. Failing to do so may lead to issues when proceeding to the next steps. Therefore, it's crucial to respect the compatibility between Unity versions and iMotions Varjo SDK versions. Using the recommended versions will ensure a stable operation. Running outside of these parameters could cause instability.

| <p>Unity Installer<br><br>Install Unity Hub and select your version<br><br>Unity Version 2022.3 or Unity 6, tested up to 6000.6 (LTS recommended)</p>                                         | <p><br><a href="https://unity.com/download"><strong>Unity Download Page</strong></a></p><p><br><a href="https://unity.com/releases/editor/archive">Unity Download Archive</a><br><br></p> |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>iMotions-Varjo Integration package<br><br>This Unity package is installed in Unity straight from GitHub and is required to modify your Unity experience to stream data to iMotions<br></p> | <p><a href="https://github.com/imotions/iMotions-UnityPlugin/tree/varjo"><strong>iMotions Varjo Integration on GitHub</strong></a><br></p>                                                |

* [iMotions Lab](https://help.imotions.com/lab/getting-started/download-and-install-imotions.md)
* If you wish to use the hand tracking that is available from Ultraleap in XR4 with the add on package you will need to download the Ultraleap SDK from the Varjo portal. <https://account.varjo.com/downloads>. This is only recommended for advanced users - please see the readme provided with the SDK above

### Setup

Open the latest Varjo Base on your PC, finish the setup process (if you haven’t done this before), and leave all the default settings there. You can see an example of Varjo XR's base window view here.

![mceclip1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-56110a5544bbb5abcdb7f0b8fe95bbb687676405%2F1d6fe51797_wpbnddlx3ew0acdthndramceclip1.webp?alt=media)

### Unity packages import and configurations

#### Creating Unity project

Open Unity Hub, in the **\[installs]** menu on the left bar, Add/Download the Unity version your package above is compatible with.

![mceclip3.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6f2752f62d27715c6620846ebbbb7d68e579f034%2Fdc4168373a_zt5iohvngk2wuwvzjyvxwmceclip3.webp?alt=media)

After installing, go to the **\[Projects]** menu on the left bar, click the **\[drop down]** icon next to the **\[New]** button. Select the Unity version you downloaded the package for. The next screen determines which template you wish to use. You can select either **3D** project or **High Definition Render Pipeline** (HDRP) as your project’s type, name it, and create your Unity project. (note for Augmented Reality applications we recommend 3D)

![mceclip4.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-7f83685b415e6806177fb1531aefcc1fd6e1fb0d%2F3b14ab4b44_rxlocecjseofnncosyo4dqmceclip4.webp?alt=media)

![mceclip5.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-bcb96ca3f649be06a8f7428570a924ac2c840037%2F96f748c565_wb6ri2wesdzm1qxqc4wmceclip5.webp?alt=media)

You will now have a project you can edit by adding your own assets or buying them from the [Unity Asset Store.](https://assetstore.unity.com/?gclid=Cj0KCQjw6NmHBhD2ARIsAI3hrM3ON88ANS8MoBwNt68Lwl8U1lb9WFVLBQocSe3-h9fCsQb6hK8HVakaAot5EALw_wcB)

This next section goes into how to modify your project to send eye tracking data into iMotions.

#### Basic packages setting

In the new Unity project, go to **\[Window]->\[Package Manager]**, click the top left **\[+]** and choose **\[Add package from git URL]** (**\[Install package from git URL]** in Unity 6). Paste `https://github.com/imotions/iMotions-UnityPlugin.git#varjo` and click **\[Add]** (**\[Install]** in Unity 6). This needs [Git](https://git-scm.com/downloads) installed on the computer. Don't add the Varjo XR Plugin yourself first: the package installs the Varjo XR Plugin and the iMotions Integration Core by itself.

![mceclip6.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-d1a9ffcb249380ad1fd8ddb526133608eae3db3a%2F3f01067e78_dzzbikmkmemeyxbapsnbgamceclip6.webp?alt=media) ![mceclip9.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6b8236b5b61e87cfc95086e26ea9497a8c90bd24%2Fb82c978008_n5hpvg4ofkkx3tufgv00ygmceclip9.webp?alt=media)

{% hint style="info" %}
A few errors can appear in the Console while the bundled packages are still installing. They clear on their own. If they don't, save your project and restart Unity.
{% endhint %}

Close the Package Manager window, go to **\[Edit]-\[Project Settings],** in the **\[XR Plug-in Management],** check **\[Varjo]**, for more customized Rendering settings on Varjo, open the **\[Varjo]** tag, please refer to their [website](https://developer.varjo.com/docs/unity-xr-sdk/getting-started-with-varjo-xr-plugin-for-unity).

![mceclip11.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b5963b300e186e6b3a99bc750ca6e9e3324955c4%2F15536165d0_wbrkrqr0rumonslt1mfgygmceclip11.webp?alt=media)

![mceclip12.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0358958bff4206a4ce9ee60c8cf4a45b492125b0%2F6d06c130cd_izyozmw76ucsj16whebawmceclip12.webp?alt=media)

Under **\[3SL],** in the iMotions Varjo Integration, choose your device in the **\[Target Headset Model].** (XR-3 and XR-4 are listed from v2.1.5. XR-3 has the same features as VR-3. For more configuration, please refer to the Integration document).

![](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b3e2ad3fababd070f9b7046028180269e54be202%2F35304a84d3_image-1715192202739.webp?alt=media)

Let's first understand the important components. Begin by importing sample scenes.

One quick way to kickstart your project is by using a pre-existing sample level that comes with functional eye tracking. You can then transfer the required components to your unique VR experience, whether you created it yourself or acquired it from the Unity Marketplace.

Go to **\[window]->\[Package Manager]** and select the **\[3SL: iMotions Varjo Integration]**, from the dropdown **“Samples”**, click **“import”**.

![mceclip18.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-edb93606858023672cd3be1c81f9b2c31b656bbf%2Fd63a5fe711_3gzhxvajjkos9p1ywzlijwmceclip18.webp?alt=media)

This will add a folder called Samples to your Assets folder

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-d28eb3ab0dffc47ec9cb21b06fcc64a510fba377%2F76c2f77634_uncrfiijkkghdizvg8rgwgmceclip0.webp?alt=media)

Inside the 3SL folder, you will find **example sample scenes** of game functions such as controllers, teleportation, and hand tracking you may want to enable in your game. Import the sample that corresponds to the render engine and features you want in your level.

#### Walk-through and instructions

To get started, you can prepare your VR level by deleting the main camera. In the Package Manager navigate to the sample folder and import the samples that match your level's render pipeline(HDRP, 3D Core). Once you've loaded the example level into your assets folder, simply drag the sample level from the Assets folder into the hierarchy folder to load both the camera rig and the sample objects into your scene. From there, you can drag the Camera Rig \[Varjo + iMotions (XRRig + controllers)] into your scene and remove the iMotions sample scene to avoid the sample objects appearing in the final build. See below for how to build your level.

Below are descriptions of the different components found in the package, if you ever need to edit them.

Open the **(Controllers)** scene as an example to show how to add and edit the controllers to enable tracking data.

![mceclip19.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a6aa9a95e87ee21fb4c823f98a38e611bb438882%2Fd65914cfe7_x5ofrobuaekhzhe5bo6lgqmceclip19.webp?alt=media)

* The **\[Varjo Gaze Server]** inside \[Varjo + iMotions (XRRig + Controllers)] GameObject is the key component that’s used to pass the collected data to iMotions.

![mceclip20.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-c419db962f59e8821e6a5c86cf7b115e10c12cf0%2F0748988215_6bo5irmpgketbivl2hjjtwmceclip20.webp?alt=media)

* The **XRRig** is the game object that represents our user. Here we have the camera as our head, and two controllers as our hands.
* The Camera Offset script is for giving a default height for our user.

![mceclip21.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-fad82a4c0b794c71cb4da9180ede90052cb6fdb3%2Fd996073ef9_c1ipjn5qlk2nlydbcd3bzamceclip21.webp?alt=media)

* The **\[Varjo PoV Camera]** is our main camera.
* **Varjo Gaze Trigger Event Source script** component is used for listening to the gaze event. You can change the Layer Mask to let Varjo only listen to the given area’s gaze data.
* FlatscreenView is only for resizing the view in play mode.
* The Tracked Pose Driver component enables position tracking for controllers and headset

![mceclip22.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-eb595613a14a7406f6552e124e50f15543db19a8%2F7d6b756edc_5wyinkqt0okm3ifgcva1qmceclip22.webp?alt=media)

#### Key Components

For anything in your scene you want to know if the user sees or touches, remember to attach the following components:

First add a **Collider** component (any shape works, the difference is the shape that defines the boundary), then add the **trigger scripts** component for touch or gaze.

* **(Touch tracking) - add the component: Collision Trigger (Script)**
* **(Gaze on object tracking) - add the component: Varjo Gaze Trigger (Script)**,

These are for successfully receiving gaze and touch data, with **Trigger Name** as Markers' later showing iMotions analysis.

![mceclip24.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-d3f6238a81afbc0338b15d4ee571788bdc3abb69%2Fbcc2823617_kwwqrefuorwgslaawwmceclip24.webp?alt=media)

### Quick Usage: (adapting your content with our camera rig for eye tracking)

To conduct an eye tracking study in a particular scene, remove the cameras and controllers currently in use. Head to the Project Window and select \[Packages]->\[3SL: iMotions Varjo Integration]->\[Prefabs]. From there, drag the appropriate prefab (Varjo + iMotions (XRRig)) into your scene. After adding the necessary components and objects, give it a try.

### Bringing data to iMotions

With your VR program now configured to send out eye tracking data you are ready to build your Unity-iMotions study to receive that data.

#### Build and run your Unity study application

In Unity, **\[File]->\[Build Settings]**, make sure your study scene is listed and the only one checked in the **Scenes in Build** window. If not, Click **Add Open Scenes** button to add your current working scene here.

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3c2dbe887f63c5ec53179cfcc4b0d006a563513f%2F4d8c3a7486_ijwu3hwsz0u2kg7adph1gmceclip0.webp?alt=media)

Before you build, go to **\[Edit]->\[Project Settings]->\[Player]->\[Resolution and Presentation]** and check **\[Run In Background]**. Without it, Unity pauses when its window loses focus, for example when you click on iMotions, and iMotions stops receiving gaze data (the eye tracker shows 0 Hz).

Then click **Build** to your preferred place. Here is an example to show the correct build result. Later on you will run the selected **.exe** application to have your project live **before starting recording in iMotions**.

![mceclip6.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-3946547df8e2cb7897260a84dd87279185644ea3%2Ffeebc10490_sxwmasl510sygs7fyujm5gmceclip6.webp?alt=media)

## Configure iMotions for eye tracking with Varjo

Open iMotions and navigate to **Eye tracking** tab in **\[preferences]-> \[Global settings]**.

In the eye tracking tab enable the checkbox for the **Eye Tracking Server** and select the **Varjo VR** option from the **Model** pull down menu.

In the Host address you will enter the address where the Unity game you have built is sending the eye tracking data: **127.0.0.1:4050**

{% hint style="danger" %}
**Troubleshoot**

***Please be aware that if you decide to test the connection, an error may occur if the headset is not sending eye tracking data. To start the data stream, calibration must be performed. Additionally, removing the headset may cause the data stream to stop.***
{% endhint %}

![The Eye tracking tab of Global Settings with Varjo VR selected and its host address](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-65e183b882fb6f3307c5f7b6cf295dd8362d5dbb%2Flab_global-settings_eye-tracking_varjo.png?alt=media)

Leave all the other settings like the screenshot shown above, then click **Ok**.

This will return you to the Main Screen and you should see the Varjo headset's connected to iMotions now. If you are adding other sensors follow the activation directions for them as usual as well in their articles.

![mceclip1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-4522749fe8919f540bf62102776bb75d17ab7c68%2F1ff686d500_ctmjzhqokie2vfh0taddgmceclip1.webp?alt=media)

Make sure you have the VR application you made above running and someone is wearing the headset.

#### Making your iMotions study

In the Library panel on the left side, click the "Add New Study" button. Under study type, select "Virtual Reality", followed by the "Unity" study subtype. Be sure that the **Varjo VR** sensor and other sensors you plan to use are enabled. If you are going to see users' touch events from controllers, please also enable **External Event API**.

![The study wizard with Virtual Reality (VR) selected as the study type](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-b0471081753e471fd5bcff85e59d2b5e0da1eebe%2Flab_study-wizard_study-type_vr.png?alt=media)

![The Select VR type page of the study wizard with Unity selected](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-27ad5aeb82f79c2b5f99f7f330b92ed2b5b00e07%2Flab_study-wizard_vr-type_unity.png?alt=media)

Select the sensors you wish to include in the study (including eye tracking if applicable), and name your study. Once the study is created in the library, iMotions will automatically populate a Screen Recording stimulus for live VR. Note that no other stimuli can be added, and the "Edit Stimuli" button to the Study Builder will be greyed out.

![A new Unity VR study in the Library, with its screen recording stimulus](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-6cd571ad34ffef0b455cab62aa1c47e2327efed5%2Flab_library_study-settings_vr-unity.png?alt=media)

From here, you can add respondents to your study via the "Add New Respondent" button in the right-hand Respondent panel. If everything is connected you are now ready to start data collection with the Start Recording button at the bottom.

{% hint style="danger" %}
**When recording a VR experience, it's crucial to ensure that the VR level is open, displayed in full-screen mode, and positioned on top of the screen being recorded. This is important because screen recording captures the entire desktop, so maximizing and keeping the VR experience on top is necessary to ensure accurate recording. If you have two monitors, it's easier to simplify this process by maximizing the VR screen on one monitor while iMotions is open on the other. However, make sure to check if your GPU supports these video outputs. If not, connect the monitor to the motherboard video output to free up the GPU for the VR headset. To record specific screens on iMotions, adjust the settings in the Global section under the slide show tab. It is recommended you set your screen resolution to 1920\*1080 for the best accuracy results. (Note The XR4 counts as 4 screens and Nvidia GPUs are limited to 5 limited outputs. This means that one display screen must be used for both control and recording onboard graphics(preferred) or a second gpu must be added to the system for a dual monitor setup(doesn't apply to the Aero or XR4))**
{% endhint %}

![mceclip4.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-cb9b43cebccbd4fe39f3f42d3f87d09d22cb2fa1%2F0f56de824e_gjc2ctgytu28yxwfzk6d9amceclip4.webp?alt=media)

With the Unity level open make sure the respondent completes the calibration and then stays in the headset until the end of data collection. You can then select your respondent and press start recording.

When the VR experience ends you will need to click end recording or press the key to end recording. (default is shift + spacebar: configurable in the same slideshow tab above)

Analysis can then be done as described analysis section in the help center (e.g. [gaze mapping](https://help.imotions.com/lab/analysis/eye-tracking/gaze-mapping/gaze-mapping.md), [Dynamic AOIs](https://help.imotions.com/lab/analysis/eye-tracking/areas-of-interest/areas-of-interest-aois.md), [scene creation](https://help.imotions.com/lab/analysis/signal-processing-r-notebooks/my-library/scene-editor.md))

### Troubleshooting

#### Failure to launch SteamVR:

Sometimes, if you opened Varjo Base first, you may encounter the failure of launching SteamVR. In this case:

In Varjo Base, **\[System]**, make sure the Tracking is SteamVR, and then **Open** SteamVR room setup. Follow the steps to set up SteamVR.

#### Error appears:

![mceclip1.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-28154f262661cc46382a17208b66a5694e67358a%2F957d1f93c1_ijhqlbb5auivy5macdoeagmceclip1.webp?alt=media)

If you see this error in console window in either play or edit mode for some reason, please go to **\[Edit] ->\[Project Settings]**, and set the **Active Input Handling** to **Both**, like this:

![mceclip0.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-0cc389df404a590291e54b989905d06955a897a5%2F4caea0e0b6_soj3mhydo0ozbivugbhroqmceclip0.webp?alt=media)

#### Scene does not work:

For the first use, after you set up everything, you might find there's no response in Varjo Base window and locked scene in Unity window once you click the Play button in Unity. You can try to restart everything (Unity, Varjo Base, SteamVR) and try again.

#### Warning appears:

If you find this specific error, it can be dismissed. Simply click **“Clear”** on the top left corner and continue.

![mceclip50.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-cd7af0980aa76a1e8b831866450bf5df8b1bdd9a%2Fbfa1382b0f_wuzj5az7nusmpwsbtxdg4qmceclip50.webp?alt=media)

#### Other warnings:

For some reason, you might receive undetectable Unity warnings or errors. We recommend you also upgrade an extra plugin: **XR plugin Management**, in order to get Varjo’s features.

Please go to **\[package manager]**, from the drop-down icon choose **Unity registry**, and then scroll down to the end, find and click the **XR plugin Management** then update to the **latest version.**

![mceclip51.png](https://286068319-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNLNBWkNpljDaAj5rQtNa%2Fuploads%2Fgit-blob-a18ffddf0f0313d1ba3d6f4ea0c66c9cc28af11d%2F77770cfde8_o4unncjyzkchu0okv1ticamceclip51.webp?alt=media)


---

# 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/varjo/varjo-xr4-set-up-how-to-get-system-and-unity-project-ready-for-imotions.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.
