# DrawRegionSwatch

> Draw swatch with a filled region between two SerializedProperty curves.

## Definition

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

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

Draw swatch with a filled region between two SerializedProperty curves.

```csharp
public static void DrawRegionSwatch(Rect position, SerializedProperty property, SerializedProperty property2, Color color, Color bgColor, Rect curveRanges)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): **** (\[SerializedProperty]\(/engine/6000.7/script-reference/unityeditor/serializedproperty)): **** (\[SerializedProperty]\(/engine/6000.7/script-reference/unityeditor/serializedproperty)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)):&#x20;

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

Draw swatch with a filled region between two curves.

```csharp
public static void DrawRegionSwatch(Rect position, AnimationCurve curve, AnimationCurve curve2, Color color, Color bgColor, Rect curveRanges)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): **** (\[AnimationCurve]\(/engine/6000.7/script-reference/unityengine/animationcurve)): **** (\[AnimationCurve]\(/engine/6000.7/script-reference/unityengine/animationcurve)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Color]\(/engine/6000.7/script-reference/unityengine/color)): **** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)):&#x20;
