Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

I have a tough problem with screen touch

Discussion in 'UGUI & TextMesh Pro' started by luoyu510183, Jul 16, 2019.

  1. luoyu510183

    luoyu510183

    Joined:
    Dec 25, 2018
    Posts:
    18
    In the Unity Editor, everything works perfectly. But running in our 43-inch Android Device with an infrared touch box, things get odd. The touch box may fire two click events at the same moment. Maybe it's only the touch box's fault. Still, I want to know if there is any way that can make Unity Event System ignore the other click events at one moment and only response the 1st click event. Hardware's defeat is more difficult to correct.
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    you could disable the button for a second or so after a click...
    myButton.interacible = false