Questions about OnMouseUp & OnMouseUpAsButton
im trying to get my buttons to respond even if the person clicked somewhere else (possibly another button) and dragged off onto the real button before letting off
like if they click one button by mistake, keep their finger / mouse clicked down, slide to the correct button, then let up and have the code run for the one they ended on.
OnMouseUp() runs for the original button if the user drags somewhere else before letting off, almost what i need. but opposite.
OnMouseUpAsButton() only work if mouse comes up over the element that it was pressed down on. so this doesn't help either.
is there another function that i'm not seeing, or maybe a quick trick to implement to either of those functions?
if not ill just watch for Input.GetMouseButtonUp() on OnMouseOver() i guess.
Your answer
![](https://koobas.hobune.stream/wayback/20220612100408im_/https://answers.unity.com/themes/thub/images/avi.jpg)