Click or drag to resize

AudioSetVolume Method (Single, Single, Single)

Sets the audio volume

Namespace:  Hellmade.Sound
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public void SetVolume(
	float volume,
	float fadeSeconds,
	float startVolume
)

Parameters

volume
Type: SystemSingle
The target volume
fadeSeconds
Type: SystemSingle
How many seconds it needs for the audio to fade in/out to reach target volume. If passed, it will override the Audio's fade in/out seconds, but only for this transition
startVolume
Type: SystemSingle
Immediately set the volume to this value before beginning the fade. If not passed, the Audio will start fading from the current volume towards the target volume
See Also