Internal_FindNearestVertex() private static method

private static Internal_FindNearestVertex ( Camera cam, Vector2 screenPoint, Transform objectsToSearch, Transform ignoreObjects, Vector3 &vertex ) : bool
cam UnityEngine.Camera
screenPoint Vector2
objectsToSearch UnityEngine.Transform
ignoreObjects UnityEngine.Transform
vertex Vector3
return bool
Esempio n. 1
0
		internal static bool FindNearestVertex(Vector2 guiPoint, Transform[] objectsToSearch, out Vector3 vertex)
		{
			Camera current = Camera.current;
			Vector2 screenPoint = EditorGUIUtility.PointsToPixels(guiPoint);
			screenPoint.y = current.pixelRect.yMax - screenPoint.y;
			return HandleUtility.Internal_FindNearestVertex(current, screenPoint, objectsToSearch, HandleUtility.ignoreRaySnapObjects, out vertex);
		}