文档

Unity Engine

Unity Engine

MakePathLine(Vector2, Vector2)

Builds a line path segment.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

The starting position of the line segment

The ending position of the line segment

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