# GetPerimeter()

> Get the length of the perimeter of the shape.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public float GetPerimeter()
```

### Returns

| Type                                                          | Description                               |
| ------------------------------------------------------------- | ----------------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The length of the perimeter of the shape. |
