GetCustomCurve(AudioSourceCurveType)
Get the current custom curve for the given AudioSourceCurveType.
阅读时间1 分钟最后更新于 1 个月前
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.