As the title says, I'm still hearing the hover sound of menus that are behind other menus.
The menu with the hover sound is a Unity UI menu with a sorting order of 0.
The menu in the foreground has a sort order of 5.
Raycasting is on for the menu in the foreground.
I can't click on the menu behind (which is correct), but it still registers the cursor hovering over it because the hover sound is still played.
I'm using Unity 6.3 (although it's done this in previous versions too), and AC 1.85.4
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I've realised that this only happens if the menu's background isn't 100% opaque. I have it semi-transparent and that's when it still detects it to make the hover sound. Is this something that can be fixed?
EDIT: Interestingly enough, I just tried making the actual background image I'm using for the foreground's menu semi transparent and it still triggers the hover sound on the menu behind it, even with the image's transparency set to 100% in the UI element. If I use a solid image with 100% opacity in the UI image element the hover sound isn't detected.
Basically, if the background menu is visible at all, it will trigger off the hover sound when hovered. I can't interact with it, which is how it should behave, but it still plays the hover sound.
Can you share screenshots to illustrate the way the two Menus overlap? I cannot reproduce this using the default Pause and Options menus (changing the Pause menu's Options button to run an ActionList that turns on Options without crossfading).