Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. if (Event.current.type == EventType.mouseDown && currentTool == CurrentTool.NONE &&  Tools.current != Tool.View && Event.current.button == 0)
  2. {
  3.  if (GUIUtility.hotControl == 0 && !currentEvent.isKey && !currentEvent.alt && !currentEvent.control && !currentEvent.shift)
  4.         {
  5.             startSelectedRect = Event.current.mousePosition;
  6.             currentTool = CurrentTool.SELECT_RECT;
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement