# GetPathPointCount(int)

> Gets the number of points in the specified path from the Collider by its index.

## Definition

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

```csharp
public int GetPathPointCount(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the path from 0 to [CompositeCollider2D.pathCount](/engine/6000.0/script-reference/unityengine/compositecollider2d/pathcount.md) minus 1.

### Returns

| Type                                                       | Description                                                  |
| ---------------------------------------------------------- | ------------------------------------------------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the number of points in the path specified by index. |

### Remarks

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