MakeLine(Vector2, Vector2)
Builds a line segment.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static BezierSegment MakeLine(Vector2 from, Vector2 to)
Parameters
Returns
Type | Description |
|---|---|
| BezierSegment | A straight line BezierSegment |
Remarks
The control points are spaced out equally to maintain a constant speed on t