# pathCount

> The number of paths in the Collider.

## Definition

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

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

### Remarks

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

Additional Resources: [CompositeCollider2D.GetPath](/engine/6000.0/script-reference/unityengine/compositecollider2d/getpath.md).
