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

#12222
pepito
Participant

Hi, I need urgently a code to MOVE my object with my gaze point. On my game I move the object in the same position as the mouse is moving. The object it’s limitated on the space (I don’t know if this is relevant):
public Rect movementLimits = new Rect(-7, 0, 14, 10);
But I don’t know how to actually move the object with the eye tracker, I don’t know if I have to transform the coordinates or if I have to use a command on the player behaviour scrpit. Because when I use the eye tracker normally, without unity, transforms into the cursor automatically. But when I start the game, it dissapear.
Please I need someone to help me urgently.