文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.