# BuildRectangleContour(Rect, Vector2, Vector2, Vector2, Vector2)

> Builds a BezierContour from a Rectangle.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.7/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public static BezierContour BuildRectangleContour(Rect rect, Vector2 radiusTL, Vector2 radiusTR, Vector2 radiusBR, Vector2 radiusBL)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): The rectangle to build the contour from**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The top-left radius of the rectangle**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The top-right radius of the rectangle**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The bottom-right radius of the rectangle**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The bottom-left radius of the rectangle

### Returns

| Type                                                                                   | Description                                        |
| -------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [BezierContour](/engine/6000.7/script-reference/unity/vectorgraphics/beziercontour.md) | A BezierContour that follows the rectangle contour |
