Forum rules - please read before posting.

Playing Menu Sounds When Paused

I have a menu that opens manually (though an action list), and for it's Action List when Turn On I have used a Sound: Play One Shot action - to play a sound when the menu opens. However, since the menu pauses gameplay, the sound is not heard until the menu is closed. How can I get around this?

Comments

  • Use the Sound: Play Action, assigning the clip but no Sound object. Then create a "Default sound" in your Scene Manager - this will be used as a fallback by the Action.

    In the Sound component, then check Play while game paused?.

  • Thank you, this does work. Will I have to create a Default Sound for every scene though?

  • For every scene that the menu can turn on, yes.

    If you use Unity UI, you could feasibly attach AudioSource / Sound components to the prefab, but having a Default Sound assigned in your scenes allows you to play menu sounds at any time.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.