DistanceToPolyLine(params Vector3[])
Returns the distance in pixels from the mouse pointer to a polyline.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
DistanceToPolyLine(Vector3[])
public static float DistanceToPolyLine(params Vector3[] points)
Parameters
Returns
Type | Description |
|---|---|
| float |
Remarks
Calculates the screen space distance from the mouse pointer to the multi segment line that goes through the given world space points.
Uses the current camera to determine the distance.
Additional Resources: HandleUtility.DistanceToLine.