/// <summary> /// Draw the selection rectangle /// </summary> private void OnGUI() { if (!isSelecting) { return; } var rect = ScreenUtil.GetScreenRect(selectionStart, Input.mousePosition); DrawUtil.DrawScreenBorderedRect(rect, 2, SelectionBorderColor, SelectionFillColor); }