# MakePathLine(Vector2, Vector2)

> Builds a line path segment.

## Definition

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

```csharp
public static BezierPathSegment[] MakePathLine(Vector2 from, Vector2 to)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The starting position of the line segment**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The ending position of the line segment

### Returns

| Type                                                                                               | Description                                                              |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [BezierPathSegment\[\]](/engine/6000.7/script-reference/unity/vectorgraphics/bezierpathsegment.md) | A BezierPathSegment array of two elements, configured in a straight line |

### Remarks

The control points are spaced out equally to maintain a constant speed on t
