Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Mouse Down won't register
- void DrawMyWindow (int windowID) {
- // code
- if (Event.current.button == 0 && Event.current.type == EventType.MouseDown) { // DOES NOT WORK
- Debug.Log ("MOUSE DOWN!");
- }
- if (Event.current.button == 0 && Event.current.type == EventType.MouseUp) { // DOES NOT WORK
- if (Event.current.button == 0) { // Works
- Debug.Log ("MOUSE UP!");
- // more code
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement