Last updated 7 months ago
As of now, USound only supports audio fading effects. Fading uses the system. In each example, we will use the fading effects on the default background music sound source.
float length = 1f; USoundManager.defaultBGMSource.FadeIn(length);
float length = 1f; USoundManager.defaultBGMSource.FadeOut(length);
Ensure the sound source is already playing an audio clip before trying to crossfade.
AudioClip newClip = USoundManager.GetAudioClip("some song"); float length = 1f; USoundManager.defaultBGMSource.Crossfade(newClip, length);