Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: beermoney on September 02, 2014, 11:45:59 AM
-
Hi Aren, I noticed if I play a audioclip using the NGUITools.PlaySound(someClip, 1, 0.05) then play another audioclip with another pitch (say pitch = 1) before the first audio clip has finished then the pitch if the first audio clip changes to 1 instead of 0.05 (ie. doesn't play as I set it too).
Appologies for the short explanation!
Thanks
-
If you look inside NGUITools.PlaySound, you will see that it uses only one AudioSource, and plays sounds via PlayOneShot. Pitch is specified on the AudioSource, which is why changing it for one affects the others.
If you need different pitch, you need to use different audio sources.