MakePathLine(Vector2, Vector2)
Builds a line path segment.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static BezierPathSegment[] MakePathLine(Vector2 from, Vector2 to)
Parameters
Returns
Type | Description |
|---|---|
| BezierPathSegment[] | 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