Skip to main content

AudioSource.GetCustomCurve(AudioSourceCurveType type)

Get the current custom curve for the given AudioSourceCurveType.
Note that if there is no curve set, or the corresponding curve type value setter has been set, a single key AnimationCurve will be returned corresponding to the current value.

Parameters:

NameTypeDescription
typeAudioSourceCurveTypeThe curve type to get.

Returns:

typeDescription
AnimationCurveThe custom AnimationCurve corresponding to the given curve type.

Usage

---@type AudioSource
local audiosource;

---@type AudioSourceCurveType
local type;


local val0 = audiosource.GetCustomCurve(type)