Twilight Princess
Remastered version of the GameCube game
Loading...
Searching...
No Matches
AudioSourceExtensions Class Reference

Static Public Member Functions

static void FadeIn (this AudioSource audioSource, float duration=1)
 Fades in the volume of the AudioSource over a specified duration.
 
static void FadeOut (this AudioSource audioSource, float duration=1)
 Fades out the volume of the AudioSource over a specified duration.
 

Member Function Documentation

◆ FadeIn()

static void AudioSourceExtensions.FadeIn ( this AudioSource audioSource,
float duration = 1 )
static

Fades in the volume of the AudioSource over a specified duration.

Parameters
audioSourceThe AudioSource to fade in.
durationThe duration of the fade-in effect.

◆ FadeOut()

static void AudioSourceExtensions.FadeOut ( this AudioSource audioSource,
float duration = 1 )
static

Fades out the volume of the AudioSource over a specified duration.

Parameters
audioSourceThe AudioSource to fade out.
durationThe duration of the fade-out effect.

The documentation for this class was generated from the following file: