# GetCustomCurve(AudioSourceCurveType)

> Get the current custom curve for the given AudioSourceCurveType.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AudioModule

```csharp
public AnimationCurve GetCustomCurve(AudioSourceCurveType type)
```

### Parameters

**** (\[AudioSourceCurveType]\(/engine/6000.7/script-reference/unityengine/audiosourcecurvetype)): The curve type to get.

### Returns

| Type                                                                            | Description                                                      |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [AnimationCurve](/engine/6000.7/script-reference/unityengine/animationcurve.md) | 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.
