Tobii XR Settings
TobiiXR you should provide a
TobiiXR_Settings object that describes how you want to configure
TobiiXR_Settings is not provided
TobiiXR will use a default configuration that is not suited for a production release.
You can either create the
TobiiXR_Settings object in code or add it as a property to one of your MonoBehaviours. There is a
PropertyDrawer implementation for
TobiiXR_Settings to provide you with a way of configuring
TobiiXR settings in the Unity Editor.
See image below.
TobiiXR Initializer is provided as an example on how you can initialize
TobiiXR in your application.
Below follows a description of all settings that can be configured for
Table of Contents
G2OM Layer Mask
G2OM Layer Mask determines what layers should be searched for focusable candidates.
Eye Tracking Providers
The eye tracking providers informs
TobiiXR where to get its eye tracking data from. When starting
TobiiXR, it tries to resolve an eye tracking provider from the prioritized list supplied in the
TobiiXR_Settings object for the appropriate platform. If none of the providers can be successfully created, it will default to the Nose Direction Provider, even if it is not in the list.
- Standalone: The provider list for everything except Android.
- Android: The provider list for Android. Be aware that Standalone provider list is used for the Unity Editor.
In the Unity Editor, the provider list setting will look like the image below. Your current target platform determines which provider list is visible.
To instead configure the provider list in code, set the properties
TobiiXR_Settings as appropriate.
See full list of available providers below.
A debugging tool that simulates gaze data from your mouse in the Unity game window. Only wraps gaze over the mouse axes, and doesn’t do anything with the buttons. Works well when used in conjunction with Gaze Modifier.
Nose Direction Provider
Acts as though your eyes are always staring straight ahead – the same direction that your nose points.
Eye tracking data provided by Tobii’s native eye tracking library.
Provider which uses data from HTC’s VIVE SRanipal SDK.
Note that this provider requires you to add the VIVE SRanipal SDK to your Unity project in order to work.
Provider which uses data from Pico’s PicoVR Unity SDK.
Note that this provider requires you to add the PicoVR Unity SDK to your Unity project.
Eye Tracking Filter
If you want
TobiiXR to filter the data before using it, you can provide an implementation of
EyeTrackingFilterBase here. This filter will affect both G2OM and the data provided by
TobiiXR.GetEyeTrackingData. One example that is included in the Tobii XR SDK is the Gaze Modifier.
Here you can find player-specific settings.
Support VIVE Pro Eye - Enable this if you want to be able to run the VIVE provider. Keep in mind that it requires the VIVE SRanipal SDK to be imported and triggers a recompile when toggled.
Support Pico - Enable this if you want to be able to run the Pico provider. Keep in mind that it requires the PicoVR Unity SDK to be imported and triggers a recompile when toggled.