public static void DrawDottedLineWithShadow(Color shadowColor, Vector2 screenOffset, Vector3 p1, Vector3 p2, float screenSpaceSize)
{
Camera current = Camera.current;
if ((current != null) && (Event.current.type == EventType.Repaint))
{
Color color = Handles.color;
shadowColor.a *= color.a;
Handles.color = shadowColor;
Handles.DrawDottedLine(current.ScreenToWorldPoint(current.WorldToScreenPoint(p1) + screenOffset), current.ScreenToWorldPoint(current.WorldToScreenPoint(p2) + screenOffset), screenSpaceSize);
Handles.color = color;
Handles.DrawDottedLine(p1, p2, screenSpaceSize);
}
}