Animation on Hover Effects

“Hello, I wanted to inquire about the possibility of implementing hover effects in Unity to colorize objects when they are looked at. However, my question goes beyond that:
Is it possible to make it so that when a user, using the vision pro, looks at an object, it performs a simple animation?
For example, a button floating in the air that rotates when the user looks at it.
Is this possible ?
or is it only possible to play with colorization when looking at an object? Thank you.”

The hover effect is not done by Unity, it is Apple that control this behaviour and there’s no way to get the gaze data, so yeah, you have to deal with the subtile Apple hover effect…

It will be, that: in unity editor we can make a raycast, and upon receiving on MOUSE_HOVER , make a cube in the air rotate when looking at it using the DEVICE ??