# pathCount

> The number of paths in the polygon.

## Definition

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

```csharp
public int pathCount { get; set; }
```

### Remarks

A *path* is cyclic sequence of line segments between points that define the outline of the polygon. Because the polygon can have holes and discontinuous parts, its shape is not necessarily defined by a single path.

Additional Resources: [PolygonCollider2D.GetPath](/engine/6000.5/script-reference/unityengine/polygoncollider2d/getpath.md), [PolygonCollider2D.SetPath](/engine/6000.5/script-reference/unityengine/polygoncollider2d/setpath.md).
