Hello,
in my application, I have code that handles clicks on UI text objects. While single clicks are detected, double clicks are not. This is the code
public void HandleClick (BaseEventData eventData)
{
PointerEventData e = (PointerEventData)eventData;
GameObject selected = e.pointerPress; // the newly selected object label
// do something for single click
if (e.clickCount == 2) {
do something for double click
}
}
This code works perfectly for standalone or web player builds … any idea?
UPDATE: it seems if I perform triple or quadruple clicks, some of them are actually registered as double clicks… but not always.
I am using Unity 5.1.0f3 on Mac OS X Yosemite, latest version. Same problem with Firefox, Safari, and Chrome (latest version for each of them).
Any help would be very appreciated!