Table of Contents

DOSetFloat Method

Namespace
DG.Tweening

DOSetFloat(AudioMixer, string, float, float)

public static TweenerCore<float, float, FloatOptions> DOSetFloat(this AudioMixer target, string floatName, float endValue, float duration)

Tweens an AudioMixer's exposed float to the given value. Also stores the AudioMixer as the tween's target so it can be used for filtered operations. Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer.

Parameters

target AudioMixer
floatName string

Name given to the exposed float to set

endValue float

The end value to reach

duration float

The duration of the tween

Returns

TweenerCore<float, float, FloatOptions>