ScriptReference/Event-clickCount #276
Replies: 1 comment
-
|
Comment by What ought to be emphasized here is that clickCount only ever gets a value of 2 during MouseDown events. It stays 1 on a MouseUp event, even if you did a double-click at that moment. My usual workaround is to use an int variable to store the value of clickCount every time there's a MouseDown event, and then use that in my MouseUp code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Event-clickCount
https://docs.unity3d.com/ScriptReference/Event-clickCount.html
Beta Was this translation helpful? Give feedback.
All reactions