Table of Contents

DOPitch Method

Namespace
DG.Tweening

DOPitch(AudioSource, float, float)

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

Tweens an AudioSource's pitch 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

duration float

The duration of the tween

Returns

TweenerCore<float, float, FloatOptions>