title: Unity touch and ui button
body: <p><a href="https://i.stack.imgur.com/FePpr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FePpr.jpg" alt="Image"></a></p>
  
  <p>Just like the image above, we have a model and a canvas in front of it. It have collider at foots, and i need onclick event in the button also. What i want is the gameobject no action when user click button, but now it's hard to click the button.</p>
  
  <p>Here is my code below:</p>
  
  <pre><code>if (Input.touchCount &gt; 0 &amp;&amp; Input.GetTouch(0).phase == TouchPhase.Began)
      {
          EventSystem es = EventSystem.current;
          Debug.Log("IsPointerOverGameObject === " + es.IsPointerOverGameObject(Input.GetTouch(0).fingerId));
          Debug.Log("currentSelectedGameObject === " + es.currentSelectedGameObject);
          if (!(es.IsPointerOverGameObject(Input.GetTouch(0).fingerId) &amp;&amp; es.currentSelectedGameObject != null))
          {
              Debug.Log("Handle touch === ");
              HandleTouchEvent();
          }
      }
  </code></pre>
  
  <p>Does someone has any ideas?</p>