title: How to get pointer down and up events for camera space?
body: <p>I need to when the user touches in any point of the screen the camera recieves <strong>pointer down|up</strong> events. I tried to attach <strong>BoxCollider2D</strong> to camera with script:  </p>
  
  <pre><code>public class PlayerController : MonoBehaviour, IPointerDownHandler, IPointerUpHandler
  {
      public void OnPointerUp(PointerEventData eventData)
      {
          // Some logic
      }
  
      public void OnPointerDown(PointerEventData eventData)
      {
          // Some logic
      }
  }
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p><strong>How to make it?</strong></p>
  
  <p><strong>P.S.</strong> I don't care if it's click on <strong>GameObject</strong> or not, it doesn't matter, the most important is that the user clicked screen. <strong>BUT I need to ignore clicks on UI elements.</strong><br>
  <strong>P.P.S</strong> I use <strong>Unity3D 2018.3.12f1</strong>.</p>