Hi @franalotto94 !
We are currently working on a better solution for 2D elements.
For now you can either manually compare the gaze coordinates with screen bounds of the 2D object or create invisible 3D colliders for them.
My objective is to trigger an UI Button contained into a Canvas.
In my code I’ve: cursor.transform.position = new Vector2(smoothedpoint.x,smoothedpoint.y);
Where cursor is an image that give information about the points where the user is looking.
If the cursor stay over a button for more than 2 seconds, I want to trigger the button action.
I’ve tried to use Raycast on void Update() function: PointerEventData pointerData = new PointerEventData(EventSystem.current);
pointerData.position = position;
List<RaycastResult> results = new List<RaycastResult>();