Is it at all possible for Unity to play multiple sound effects at the same time? I've set up 5 different audio sources and told which sound effect to play from yet whenever I'm playing one of them, the others will not play. Am I doing something wrong or is it actually impossible? If you can help, please leave an example script. Ex:
var AudioSource1 : AudioSource;
AudioSource1.PlayOneShot(FootSteps);
Could you tell me how to go about it? Because the above example is pretty much the audio portion of the code.
– XatokuHm, there's really not that much to say about it. If you have two AudioSource components, and you start playback on both audio sources (e.g. using Play(), PlayOneShot(), etc.), then both sounds should play at the same time. If that's not happening for you, then something is probably wrong somewhere (e.g. in your code or in your project setup).
– j_y_kSo I did it the right way initially?
– XatokuWhat you posted looks fine, but it's not a complete example. To say for sure whether it would work, I think we'd need to see a complete script (or at least a complete code sample).
– j_y_k