- Home /
Question by
Majk- · Aug 11, 2017 at 09:25 AM ·
triggereventsystempointer
IPointerUpHandler not triggering
Today I tried implementing that Interface. But when I release the mouse button, the event is not triggered. However, when I implement the IPointerClickHandler, the UpHandler starts working ... Is this intended ? Thanks
E: When I press the mouse button when over a different gameObject than the one I release the button on, the IPointerUpHandler event is not triggered either.
Comment
Answer by ben-rasooli · Aug 19, 2020 at 03:01 AM
The OnPointerUp(PointerEventData eventData)
is called if the eventData.pointerPress
is set to the same object prior to calling OnPointerUp
. You can see my answer here
Your answer
![](https://koobas.hobune.stream/wayback/20220612132458im_/https://answers.unity.com/themes/thub/images/avi.jpg)