Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AudioSource.GetCustomCurve

Switch to Manual
public method GetCustomCurve(type: AudioSourceCurveType): AnimationCurve;

Parameters

typeThe curve type to get.

Returns

AnimationCurve The custom AnimationCurve corresponding to the given curve type.

Description

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.

Did you find this page useful? Please give it a rating: