Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawRegionSwatch

Draw swatch with a filled region between two SerializedProperty curves.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

DrawRegionSwatch(Rect, SerializedProperty, SerializedProperty, Color, Color, Rect)

Draw swatch with a filled region between two SerializedProperty curves.
public static void DrawRegionSwatch(Rect position, SerializedProperty property, SerializedProperty property2, Color color, Color bgColor, Rect curveRanges)

Parameters

position




color


bgColor


curveRanges

DrawRegionSwatch(Rect, AnimationCurve, AnimationCurve, Color, Color, Rect)

Draw swatch with a filled region between two curves.
public static void DrawRegionSwatch(Rect position, AnimationCurve curve, AnimationCurve curve2, Color color, Color bgColor, Rect curveRanges)

Parameters

position




color


bgColor


curveRanges