Click or drag to resize
FadingAudioSource Methods

The FadingAudioSource type exposes the following members.

Methods
  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.
Public methodFadeOut
Fades out the current audio clip, stopping the clip after.
Public methodPlay
Continues fading in the current audio clip.
Public methodStop
Stop playing the current audio clip immediately.
Top
See Also