# PathSegmentAtIndex(IList<BezierPathSegment>, int)

> Computes the BezierSegment at a given index from a list of BezierPathSegments.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.3/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

```csharp
public static BezierSegment PathSegmentAtIndex(IList<BezierPathSegment> path, int index)
```

### Parameters

**** (\[IList\<BezierPathSegment>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1)): The chain of BezierPathSegments**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The segment index

### Returns

| Type                                                                                   | Description                          |
| -------------------------------------------------------------------------------------- | ------------------------------------ |
| [BezierSegment](/engine/6000.3/script-reference/unity/vectorgraphics/beziersegment.md) | The BezierSegment at the given index |
