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

[SOLVED] EventTrigger PointerEnter/Exit + Multitouch = trouble?

Discussion in 'UGUI & TextMesh Pro' started by Shushustorm, Mar 9, 2016.

  1. Shushustorm

    Shushustorm

    Joined:
    Jan 6, 2014
    Posts:
    1,084
    Hello everyone!
    I've got 2 UI elements, both using the EventTriggers PointerEnter and PointerExit.
    Both work fine individually, but as soon as I try to access both at the same time (each with one touch), both get blocked and the script's functions attached to PointerEnter and PointerExit won't run any more.
    Is this expected behaviour or is this some sort of bug that I can get rid of?

    Many thanks for any ideas,
    Greetings,
    Shu

    EDIT:
    I tried setting one of the UI elements to PointerDown and PointerUp instead.
    Then, PointerDown and PointerUp will work using two touches, but the other UI element using PointerEnter and PointerUp won't.

    EDIT2:
    Solved this by disabling raycast target on the UI elements used for highlighting that are drawn above the UI elements that have the EventTrigger attached.
     
    Last edited: Apr 3, 2016