Search Unity

How to skip touch event on UI

Discussion in '2D' started by copang, Mar 23, 2018.

  1. copang

    copang

    Joined:
    Sep 8, 2014
    Posts:
    2
    Hi everyone, i want to create a panel that can be scroll (by Drag event) but skip tap event (like click event), when receive a tap event it will skip then next UI (behind the panel) will receive that tap event.
    Is it possible to implement it?
     
  2. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    Instead of skipping the event, trigger some code that sets the next UI component as active and send a ClickEvent to that component.
     
  3. copang

    copang

    Joined:
    Sep 8, 2014
    Posts:
    2
    Thanks for your answer, there is a listview behind that panel and each item in listview has click event, so i need send event to listview or its items?