# MakeRectangleShape

> Builds a rectangle shape.

## Definition

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

## MakeRectangleShape(Shape, Rect)

Builds a rectangle shape.

```csharp
public static void MakeRectangleShape(Shape rectShape, Rect rect)
```

### Parameters

**** (\[Shape]\(/engine/6000.5/script-reference/unity/vectorgraphics/shape)): The shape object that will be filled with a rectangle.**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): The position and dimensions of the rectangle.

## MakeRectangleShape(Shape, Rect, Vector2, Vector2, Vector2, Vector2)

Builds a rectangle shape.

```csharp
public static void MakeRectangleShape(Shape rectShape, Rect rect, Vector2 radiusTL, Vector2 radiusTR, Vector2 radiusBR, Vector2 radiusBL)
```

### Parameters

**** (\[Shape]\(/engine/6000.5/script-reference/unity/vectorgraphics/shape)): The shape object that will be filled with a rectangle.**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): The position and dimensions of the rectangle.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The top-left radius of the rectangle**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The top-right radius of the rectangle**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The bottom-right radius of the rectangle**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The bottom-left radius of the rectangle
