LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

HandleUtility.ProjectPointLine

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

Description

Project point onto a line.