Skip to content

FadeAudioSource.cs

Matthew Coulter edited this page Aug 17, 2022 · 1 revision

class

class/ Inherits from:None

Description

This class is an attempt to fade Sounds in and out.

Public Methods

Method Description Returns Parameters Type
IEnumerator This method is what will start the lerp from the current Sound's volume to the target volume, lasting however long the duration is audioSource: This is the AudioSource whos volume will be changed, duration: This float is how long the fade will last for, targetVolume: This float is what the Audio Source volume will end up at when the fade finishes static