Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

`PointerEventData` propagation order

Discussion in 'Getting Started' started by AbleArcher, Oct 24, 2023.

  1. AbleArcher


    Feb 27, 2017
    I have two panels with `IPointerMoveHandler` components attached. One panel is a child of the other. Sometimes one has its `OnPointerMove` called first, sometimes the other one has it called first. I assumed the child would receive the event first since that matches my expectations of how GUI would behave. Can I influence which receives the event first? I tried calling `Use` on the event data in the child and then checking it in the other component, but that was useless if the order was reversed.