I am trying to scale and change an object when the player is looking at an object (or not looking at it) before they pinch to select it. Kind of like how the default Vision Pro UI works.
I am using the XR Grab Interactable and XR Simple Interactable components and I noticed they have Hover Entered and Hover Exited events but they don’t seem to work.
Is getting the object that the player is looking at supported or do I need to do it a different way?
(I am using an unbounded scene if that matters).
There is no way to get hover event on visionOS. Only thing you can do is adding ‘VisionOSHoverEffect’ component to your ‘MeshRenderer’ and let visionOS highlight your object when user is looking at it.
More info
@ibrahimpenekli Do you know if it’s possible to achieve hover effect on UI elements like button in Full Immersive (VR)?
Afaik, ‘VisionOSHoverEffect’ component requires ‘MeshRenderer’. So it is not possible I guess. I use ‘MeshRenderer’ plate as background of UI elements to achieve hover effect.