Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Event.current.type == EventType.mouseDown && currentTool == CurrentTool.NONE && Tools.current != Tool.View && Event.current.button == 0)
- {
- if (GUIUtility.hotControl == 0 && !currentEvent.isKey && !currentEvent.alt && !currentEvent.control && !currentEvent.shift)
- {
- startSelectedRect = Event.current.mousePosition;
- currentTool = CurrentTool.SELECT_RECT;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement