Click or drag to resize
FadingAudioSourceFade Method
Overload List
  NameDescription
Public methodFade(AudioClip, Single, Boolean)
If the audio source is enabled and playing, fades out the current clip and fades in the specified one, after. If the audio source is enabled and not playing, fades in the specified clip immediately. If the audio source is not enabled, fades in the specified clip as soon as it gets enabled.
Public methodFade(AudioClip, AudioClip, Single)
If the audio source is enabled and playing, fades out the current clip and fades in the specified intro clip, after. If the audio source is enabled and not playing, fades in the specified intro clip immediately. If the audio source is not enabled, fades in the specified intro clip as soon as it gets enabled. After the intro clip has finished, starts looping the loop clip immediately, without fading.
Public methodFade(AudioClip, Single, Boolean, Single)
If the audio source is enabled and playing, fades out the current clip and fades in the specified one, after. If the audio source is enabled and not playing, fades in the specified clip immediately. If the audio source is not enabled, fades in the specified clip as soon as it gets enabled.
Top
See Also