# BezierCurveTo(Vector2, Vector2, Vector2)

> Adds a cubic bezier curve to the current sub-path to the provided position using two control points.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public void BezierCurveTo(Vector2 p1, Vector2 p2, Vector2 p3)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The first control point of the cubic bezier.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The second control point of the cubic bezier.**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The final position of the cubic bezier.
