Table of Contents

DOFade Method

Namespace
DG.Tweening

DOFade(AudioSource, float, float)

public static TweenerCore<float, float, FloatOptions> DOFade(this AudioSource target, float endValue, float duration)

Tweens an AudioSource's volume to the given value. Also stores the AudioSource as the tween's target so it can be used for filtered operations

Parameters

target AudioSource
endValue float

The end value to reach (0 to 1)

duration float

The duration of the tween

Returns

TweenerCore<float, float, FloatOptions>