ドキュメント

Unity Engine

Unity Engine

DistanceToPolyLine(params Vector3[])

Returns the distance in pixels from the mouse pointer to a polyline.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

DistanceToPolyLine(Vector3[])

public static float DistanceToPolyLine(params Vector3[] points)

Parameters

points

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.