Page 1 of 1
Simultaneous Audio Clips and Subtitles
Posted: Sat Mar 24, 2018 6:46 pm
by n_hagialas
Hi Tony,
1. Is there a way to run two audio files from the resources folder at the same time? It seems like whenever I try to run more than one, the first one gets cut out. Do you know a solution for this?
2. I was also wondering if there was a way to just display subtitles without the UI graphic elements and just text at the bottom of the screen?
Thanks,
Nik
Re: Simultaneous Audio Clips and Subtitles
Posted: Sun Mar 25, 2018 7:35 pm
by Tony Li
Hi Nik,
n_hagialas wrote: ↑Sat Mar 24, 2018 6:46 pm1. Is there a way to run two audio files from the resources folder at the same time? It seems like whenever I try to run more than one, the first one gets cut out. Do you know a solution for this?
Specify different Audio Sources or GameObjects as the
subject. The full syntax of Audio() is Audio(
clip,subject). The full syntax of AudioWait() is AudioWait(
clip,subject,clips...). For example:
Code: Select all
AudioWait(buzz, Force Field);
AudioWait(warning, Intercom)
This will play "buzz" on the GameObject named "Force Field", and it will play "warning" on the GameObject named "Intercom".
n_hagialas wrote: ↑Sat Mar 24, 2018 6:46 pm2. I was also wondering if there was a way to just display subtitles without the UI graphic elements and just text at the bottom of the screen?
Yes, use a dialogue UI that doesn't have the UI graphic elements assigned, such as the Letterbox UI. If you only want to use this for one conversation, add an
Override Dialogue UI component to one of the GameObjects involved in that conversation, and assign the dialogue UI.
Re: Simultaneous Audio Clips and Subtitles
Posted: Mon Mar 26, 2018 7:48 pm
by n_hagialas
Thanks Tony, I'll try these out!