Pause button sound playing even if process set to Inherit

At first I couldn’t understand why I didn’t have the same issue with the pause button.
As soon as I added the line of code to have it play, it did and was not affected by the game being paused.
I’m pretty sure that it’s due to the fact that I wrote the line after pause_game.emit() but I’m not sure I really understand why that is. I guess it has something to do with the order of execution?

Here is how my script and inspector look:

Hi,

Apologies we missed this question on the first time around.
I dont appear to have the issue with the pause button either but i have mine set as in the course.
I wonder if having it set as inherit but putting the SoundFX.play after the emit is doing something under the hood with as you say the order of execution.

Without seeing the code under the hood we might never know but if it works and isnt causing an issue i would say its fine :slight_smile:

Once again sorry this got overlooked.

2 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms