Api > AudioSource > GetCustomCurve()
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:⚓︎
Name | Type | Description |
---|---|---|
type | AudioSourceCurveType | The curve type to get. |
Returns:⚓︎
type | Description |
---|---|
AnimationCurve | The custom AnimationCurve corresponding to the given curve type. |
Usage⚓︎
---@type AudioSource
local audiosource;
---@type AudioSourceCurveType
local type;
local val0 = audiosource.GetCustomCurve(type)