Version: 2018.2

HandleUtility.DistancePointBezier

Switch to Manual
public static float DistancePointBezier (Vector3 point, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent);

Description

Calculate distance between a point and a Bezier curve.

See Also: Handles.DrawBezier function.