Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug EventTrigger pointer down triggered even when clicking on transparent areas

Discussion in 'UGUI & TextMesh Pro' started by laurentlavigne, Jan 31, 2021.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,918
    apart from sprinkling GetComponent<Image>().alphaHitTestMinimumThreshold = 1f; on every EventTrigger button, is there a more economical way of making events fire only when the pointer is on alpha = 1?
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,918
    might be due to sprite atlasing...