Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void DrawCurve(Rect r, AudioCurveRendering.AudioCurveEvaluator eval, Color curveColor)

Parameters

Rectangle determining the size of the graph.

Curve evaluation function.

curveColor

Solid fill color of the curve. The alpha-channel determines the amount of opacity.