Crossfade

Unity 3D – Cross-fade two AudioClips with two AudioSources

Unity 3D – Cross-fade two AudioClips with two AudioSources

Cross-fading is a technique to stop one song and softly bend to another song. The following script is designed to cross-fade loop-able songs. The following script is designed to fade between two loop-able songs. Afterwards the song is played until it is replaced by another song. Just call the Play(AudioClip clip) function and the script organizes the rest.