# BezierSegmentsToPath(BezierSegment[])

> Converts an array of BezierSegments into a connected path.

## Definition

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

```csharp
public static BezierPathSegment[] BezierSegmentsToPath(BezierSegment[] segments)
```

### Parameters

**** (\[BezierSegment\[]]\(/engine/6000.5/script-reference/unity/vectorgraphics/beziersegment)): An array of BezierSegment

### Returns

| Type                                                                                               | Description               |
| -------------------------------------------------------------------------------------------------- | ------------------------- |
| [BezierPathSegment\[\]](/engine/6000.5/script-reference/unity/vectorgraphics/bezierpathsegment.md) | An array of path segments |

### Remarks

If two consecutive segments are disconnected, a straight line will be added between the two endpoints.
