|
Hi guys, is there a way to find out whether any audio is playing? This works only when the script is attached to the gameobject that contains the audio source. If I want to target to another script in another gameobject, i can do this. } But what i really want is to check if any sort of audio is playing in the scene. It can be playing from any gameobject with a audio source attached. If there a way to check it? Sorry for the long winded question. Trying to get my question across as clear as possible. Thanks guys!! Rgds, James
(comments are locked)
|
|
someone delete away the spam please. Thanks.
Aug 24 '11 at 11:02 PM
James Ser
this needs to be removed.
Aug 05 '12 at 04:38 AM
reptilebeats
(comments are locked)
|

maybe you can find all the objects that have an AudioSource[] and then use a for to check if a AudioSource is playing