Unity version: 2022.3.8f1
AC version: 1.81.3
I have a problem where an ActionList is opening up a menu, and I want it to play a sound before the menu pops up, but instead, it plays it only after the menu closes. The menu in question has “Pauses Game” checked because I do want that functionality, except I do want this sound to play before menu pops up. I tried adding an Engine: Wait but it didn't sound right and the timing was just weird. Ideally, I just want the sound to play as the menu pops up.
Relevant screenshots:
In this screenshot, you see that I am running an Actionlist called ObjectsGoogled (which contains an action to call my sound), after which point, I am triggering a menu called WebPageMenu. I have minimized Actionlist items that are not relevant to avoid clutter in the screenshot
That's my my ObjectsGoogled Actionlist, which contains an item to play a sound
Yet when I run the scene, the sound plays only after I exit the menu. Here is a video: https://imgur.com/a/f970ttj
In this video, you’ll see sound working as desired when I open a Subtitles menu, but start misbehaving when I open WebPageMenu: https://imgur.com/a/f970ttj
Help would be appreciated. Thank you!
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I'm afraid the screenshots aren't showing - I can only see the video that shows the issue.
To play sounds while the game is paused, however, you need to rely on a Sound object that has **Play while game paused?* checked.
If you create a "Default Sound" object in the Scene Manager, check this option, and then use the Sound: Play one shot Action, then the audio from this Action will automatically rely on the default Sound object and be able to play while the game is paused.
Ooops, sorry I forgot to include the screenshots. Relying on a Sound Object did the trick! Thank you so much!