- Home /
Double click too fast
Hello community,
I am having issue with a UI button. I am assigning actions to it at runtime using AddListener. One of these actions is loading a scene async. The problem is that quickly double clicking that button loads the scene twice.
I tried making the button non-interactable as soon as I click it and also added a bool that changes value after the first click and should stop executing the actions on the second click but it doesn't work. the double click is registered too fast.
I would not want to use any Ipointerclick events if possible.
Can anyone help me with this issue, please?
Ins$$anonymous$$d of (or in addition to) disabling the button, you could just have the button click queue up the scene load operation and make sure that only happens once.
Your answer
