Advertisement
LittleAngel

Untitled

Mar 17th, 2011
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. // Mouse Down won't register
  2. void DrawMyWindow (int windowID) {
  3. // code
  4. if (Event.current.button == 0 && Event.current.type == EventType.MouseDown) { // DOES NOT WORK
  5. Debug.Log ("MOUSE DOWN!");
  6. }
  7. if (Event.current.button == 0 && Event.current.type == EventType.MouseUp) { // DOES NOT WORK
  8. if (Event.current.button == 0) { // Works
  9. Debug.Log ("MOUSE UP!");
  10. // more code
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement