Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

HandleUtility.ProjectPointLine

public static Vector3 ProjectPointLine(Vector3 point, Vector3 lineStart, Vector3 lineEnd);

Description

Project point onto a line.

See Also: DistancePointLine. See Also: PointOnLineParameter.