Playing multiple audio clips

I have multiple AudioClips that I would like to play one after the other, however I can not seem to find a way to do this. I have tried using playDelayed, but this only plays the first clip. I have also tried setting the AudioSource equal to each clip one after each other, but I assume that it is executing too quickly, so only the last clip plays. Is there another way to do this.

Basically, its for example 5 audio clips, and I want clip 1 to play, which will be followed by clip 2 once it is complete, which will be followed by 3 and on and on.

I would recommend playing the first clip, then periodically checking if the AudioSource.isPlaying is false, meaning that the clip is over. Then play the 2nd clip and so on. You might need to skip a frame if AudioSource.isPlaying doesn’t immediately return true when you call .Play() (to be tested).

1 Like