# DrawCurve(Rect, AudioCurveEvaluator, Color)

> Renders a thin curve determined by the curve evaluation function. The solid color of the curve is set by the curveColor argument.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.3/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void DrawCurve(Rect r, AudioCurveRendering.AudioCurveEvaluator eval, Color curveColor)
```

### Parameters

**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): Rectangle determining the size of the graph.**** (\[AudioCurveEvaluator]\(/engine/6000.3/script-reference/unityeditor/audiocurverendering/audiocurveevaluator)): Curve evaluation function.**** (\[Color]\(/engine/6000.3/script-reference/unityengine/color)): Solid fill color of the curve. The alpha-channel determines the amount of opacity.
