Home › Forums › Software Development › Get Eye-screen-coordinates and match it with a Unity game object › Reply To: Get Eye-screen-coordinates and match it with a Unity game object
06/11/2019 at 10:22 #12262
Grant [Tobii]
Keymaster
Hi@ stefy001. I am afraid Without knowing your scene setup, it is difficult to give you an exact syntax, but perhaps this snippet can be useful for you.
void Update()
{
var gaze = TobiiAPI.GetGazePoint().Screen;
transform.position = Camera.main.ScreenToWorldPoint(new Vector3(gaze.x, gaze.y, 10));
}
Let us know how that helps.