Created
January 19, 2017 04:06
-
-
Save tonymtz/cd0cefea9d0efba859bea7d2a3a44651 to your computer and use it in GitHub Desktop.
EyeTracking.GetGazePoint sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Unity.Engine; | |
using Tobii.EyeTracking; | |
public class ExampleClass : MonoBehaviour | |
{ | |
void Update() | |
{ | |
GazePoint gazePoint = EyeTracking.GetGazePoint(); | |
if (gazePoint.IsValid) | |
{ | |
print("Gaze point on Screen (X,Y): " + gazePoint.Screen.X + ", " + gazePoint.Screen.Y); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment