I’m wondering if there is any way to set up a button in Unity to be gaze aware. Essentially what i’m trying to do is to be able to interact with a button using gaze like you would with a mouse (i.e. look at the button, and then click to have it perform whatever action it is set to do).
From looking at other forum posts it looks like this was possible to do in the past, but i’m assuming after Unity change how UI works that this changed.
I’m relatively new to using the Unity SDK, only having started using it this year as part of a University project, so apologies if there is a very straightforward way of doing this that I’ve managed to miss.
If it is still possible to make a gaze aware button then I would appreciate if someone could explain how to to this. If it is not possible it would be useful if someone could explain why this is the case, as this would be something I could include in my final report.
I actually just implemented this the other day. Easiest way to do it is get the coordinates of the gaze point and use Unity’s UI Graphic Raycaster to figure out what elements they’re looking at and then act on them.