# CreatePrimitive(int, Vector2, Vector2)

> Creates as regular primitive polygon with the specified number of sides.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public void CreatePrimitive(int sides, Vector2 scale, Vector2 offset)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The number of sides in the polygon.  This must be greater than two.**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): The X/Y scale of the polygon.  These must be greater than zero.**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): The X/Y offset of the polygon.
