GetCustomCurve(AudioSourceCurveType)
Get the current custom curve for the given AudioSourceCurveType.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public AnimationCurve GetCustomCurve(AudioSourceCurveType type)
Parameters
The curve type to get.
Returns
Type | Description |
|---|---|
| AnimationCurve | The custom AnimationCurve corresponding to the given curve type. |
Remarks
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.