Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Button.onClick sometimes not firing on Android

Discussion in 'UGUI & TextMesh Pro' started by Bersaelor, May 20, 2022.

  1. Bersaelor


    Oct 8, 2016
    Hey there,

    in about 1 in 10 taps on the buttons in my UI the `onClick` connect on Android. It works 100% in the editor.
    The buttons are inside a ScrollRect, but I am very careful to tap exactly the same way and not drag my finger during the tests, so that should be it (the scrollrect interfering).

    I also don't have any big performance issues, but is it possible some Android-Process is busy right the second my tap happens?
    Has anyone else experience this issue?

    PS: After adding a target-graphic to the button, so I can see the visual change when the tap happens, I could confirm that the button actually changes color but the `onClick` event is not firing.
    Last edited: May 20, 2022
    Pinjiang likes this.