Page 1 of 1

Sounds on click and hoover not work in pausemenu

Posted: Sun Nov 14, 2021 12:52 pm
by hrohibil
Hello

Another Menu frame work question

I added sound on click and event trigger for the hoovering. It works great for the main menu. When i load game and open the pause menu, as soon as i hoover the mouse over the button i get errors. AS you see from screenshot they are missing ?

I added the sounds from the main/tile scene.



Please advice..

Re: Sounds on click and hoover not work in pausemenu

Posted: Sun Nov 14, 2021 1:17 pm
by Tony Li
Make sure whatever you have assigned to the Menu System's OnClick() and PointerEnter() events is also in the Menu System's hierarchy. Otherwise it will not be present when you change scenes.

Re: Sounds on click and hoover not work in pausemenu

Posted: Sun Nov 14, 2021 1:22 pm
by hrohibil
Thank you again again...
Bravo