When I load a prefab, it doesn't load the audio source that is connected to it, so it doesn't play when I want it too.
Also, on a slightly related note, when I use Audio.play() in a script, it plays every single audio source attached to an object/prefab in the scene/assets.
Help please? Thanks in advance.
asked Mar 22 '10 at 10:39 PM
Well, regarding the Audio.play() try audio.PlayOneShot(NameOfWhatYouWantToPlay).
answered Mar 23 '10 at 01:12 AM
Regarding the first problem - make sure you added an AudioSource component to the prefab that contains AudioClip member with the linked asset (that's what got me...)
answered Jun 15 '10 at 03:53 PM