Version: 2019.2

HandleUtility.PointOnLineParameter

Switch to Manual
public static float PointOnLineParameter (Vector3 point, Vector3 linePoint, Vector3 lineDirection);

Description

Returns the parameter for the projection of the point on the given line.

The return value can be negative if the projected point is in negative lineDirection relative to the linePoint/ See Also: ProjectPointLine.