Bridges Tobii Game Integration (TGI) tracking data into the Unity Input System as virtual devices.
- Virtual gaze device (screen position + delta)
- Virtual head angle device (screen position + delta + rotation)
- Virtual head position device (position + delta + distance)
- Unity 6.0 or newer
- Unity Input System package 1.7 or newer (
com.unity.inputsystem) - Tobii Game Integration API SDK v9.0.4 or newer. https://developer.tobii.com/pc-gaming/downloads/
This package does not ship the Tobii Game Integration SDK files. You need to copy the required SDK files from the official Tobii SDK into your Unity project.
Copy the managed SDK assembly into your project Plugins folder:
Assets/Plugins/Tobii.GameIntegration.Net.dll
Do not include TobiiGameIntegrationApi.cs when using the managed DLL path.
Copy the native plugin DLL into Plugins:
Assets/Plugins/tobii_gameintegration_x64.dll
Select each DLL in Unity and confirm Plugin Inspector settings.
For Tobii.GameIntegration.Net.dll (managed):
Auto Referenceenabled- Included for Editor and target runtime platforms
For tobii_gameintegration_x64.dll (native, Windows x64):
- Editor enabled
- Standalone enabled
- Windows x86_64 enabled
In Unity Package Manager:
-
Open Window > Package Manager.
-
Click + > Add package from git URL...
-
Enter your repository URL:
https://github.com/Adroit-Studios/Unity-TobiiGameIntegration-InputSystemAdapter.git
Once installed, go to package manager, select this package then go to the "Samples" tab in order to install example scene and assets.
- Add
TGIHardwareManagerto a scene object. - Add
TGIVirtualInputto a scene object. - Create Input Actions that bind to the virtual device controls (
TGIGaze,TGIHead,TGIHeadPosition). - Enter Play Mode and verify functionality using the debug visualizations built into the hardware manager.
- In Editor, use Free Aspect in Game view for accurate coordinate behavior.
- Ensure required Tobii native DLLs are present for your target platform and build type.
See LICENSE.md.