Page 3 of 3

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 4:19 pm
by Eldritch_Horror
Hi.
I've dragged the file in, but I can't hear it. Can you advise?
Thanks.

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 4:26 pm
by Tony Li
Hi,

Are there any errors or warnings in the Console window?

Is "Audio/Area 1 Reorientation/Bernard/Bernard_Hello" inside a folder named "Resources" (exactly spelling and capitalization)?

Is your Game view's sound muted?

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 4:54 pm
by Eldritch_Horror
Yes. The following:

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 5:08 pm
by Tony Li
Those aren't related to audio, but you can clear them up by inspecting your dialogue UI and quest log window (if you use one) and unticking the "Add EVent System If Needed" checkboxes on them.

Since you're using Adventure Creator, make sure Adventure Creator hasn't muted the audio.

Also, turn on logging so you can see the details of the AudioWait() sequencer commands when they run:


Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 5:12 pm
by Eldritch_Horror
I've created a video here:
https://www.dropbox.com/scl/fi/w5qn37bb ... 3np7q&dl=0

Game audio is on.

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 5:14 pm
by Tony Li
Please turn on logging and review the Console window.

I see a "Cannot play disabled audio source" message at the bottom of the window. That's probably the reason why you don't hear audio.

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 5:24 pm
by Eldritch_Horror
From console:

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 6:10 pm
by Eldritch_Horror
I have solved the issue. I was referencing the prefab gameObject instead of the gameObject that was actually in the scene! Thank you for your help and support, Tony.

Re: Adding sound to dialogues

Posted: Wed Apr 17, 2024 9:02 pm
by Tony Li
Good job! I'm glad you found the issue and were able to fix it.