Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: VapapeurTeam on February 25, 2013, 04:50:36 AM

Title: How does NGUI.PlaySound work ?
Post by: VapapeurTeam on February 25, 2013, 04:50:36 AM
Hello,

NGUI scripts all seem to use NGUITools.PlaySound() to play sounds (for button clicks, etc). Are any audio sources used by NGUITools to play these sounds ? And is there a way to control the volume of all sounds played by NGUI without having to modify the NGUI base code ?

Thanks in advance.
Title: Re: How does NGUI.PlaySound work ?
Post by: ArenMook on February 25, 2013, 06:51:35 AM
NGUITools.soundVolume :P

NGUI creates an audio source for you.
Title: Re: How does NGUI.PlaySound work ?
Post by: VapapeurTeam on February 25, 2013, 07:35:21 AM
Hehe ok I guess I didn't dig very deep, sorry.

I'll give that a try. I have my own sound management system (for global volume, application pause, etc), and I just need to make sure I can control NGUI's sound aswell.

Thanks.