![]() | FadingAudioSource Class |
Namespace: Slash.Unity.Common.Sound
The FadingAudioSource type exposes the following members.
Name | Description | |
---|---|---|
![]() | FadingAudioSource | Initializes a new instance of the FadingAudioSource class |
Name | Description | |
---|---|---|
![]() | Clip |
Current clip of the audio source.
|
![]() | IsPlaying |
Whether the audio source is currently playing a clip.
|
![]() | Loop |
Whether the audio source is looping the current clip.
|
![]() | Volume |
Current volume of the audio source.
|
Name | Description | |
---|---|---|
![]() | Fade(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.
|
![]() | Fade(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.
|
![]() | Fade(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.
|
![]() | FadeOut |
Fades out the current audio clip, stopping the clip after.
|
![]() | Play |
Continues fading in the current audio clip.
|
![]() | Stop |
Stop playing the current audio clip immediately.
|
Name | Description | |
---|---|---|
![]() | FadeOutThreshold |
Volume to end the previous clip at.
|
![]() | FadeSpeed |
Volume change per second when fading.
|