UnityEditor.RectHandles.DrawDottedLineWithShadow C# (CSharp) Method

DrawDottedLineWithShadow() public static method

public static DrawDottedLineWithShadow ( Color shadowColor, Vector2 screenOffset, Vector3 p1, Vector3 p2, float screenSpaceSize ) : void
shadowColor Color
screenOffset Vector2
p1 Vector3
p2 Vector3
screenSpaceSize float
return void
        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);
            }
        }