In this video we see how to detect mouse hover over UI elements in Unity, for that we use the EventTrigger component and add a "Pointer Enter" event, this allows us to detect mouse hover over buttons and images.
When the mouse hover triggers we simply execute the "PlayOneShot" function on an AudioSource component, indicating which audio clip to play on mouse hover.
In the following page you can read more information on how to play sounds on mouse hover over UI elements in Unity
https://gamedevtraum.com/en/game-and-...
____________________________________________________________
PORTFOLIO: https://gamedevtraum.com/en/portfolio...
CONTACT: / gamedevtraum
LINKEDIN: / gamedevtraum
DONATIONS
-You can download one of me free assets for Unity from my ITCH page and leave a donation
-You can donate with the THANKS button on every video
____________________________________________________________