I’m trying to make a custom button. It works as expected except it’s not as responsive as the native button widget.
If I click really fast, continuously on my button widget, it only picks up every 2nd click.
Its like, after clicking, I have to wait a few milliseconds before the button becomes clickable again. I checked and it’s the event itself which is the problem.
The ‘OnMouseButtonDown’ event does not fire.
- Click - Event fires
- Click - Event does not fire
- Click - Event fires
- Click - Event does not fire
This only happens when clicked continuously and fast. If I wait between clicks then it works.
On the other hand, the native button widget feels really responsive, it works, doesn’t matter how fast I click.
Can anyone tell what might be the problem?