Author Topic: How does NGUI.PlaySound work ?  (Read 3703 times)

VapapeurTeam

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
How does NGUI.PlaySound work ?
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How does NGUI.PlaySound work ?
« Reply #1 on: February 25, 2013, 06:51:35 AM »
NGUITools.soundVolume :P

NGUI creates an audio source for you.

VapapeurTeam

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: How does NGUI.PlaySound work ?
« Reply #2 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.