Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

What happen when there are 2 scripts intercepting the same event?

$
0
0
Hi,

This is something I never quite figure out:

- For Buttons, I am able to add another monobehaviour that implements IPointerClickHandler, and intercept that OnPointerClick event (without affecting the Button's own click logic).

- For Input fields, I am not able to add another monobehaviour that implements ISubmitHandler, and intercept that OnSubmit event (only Input Field's own onEditEnd/onSubmit events are fired).

So apparently submit event works differently from click...

What happen when there are 2 scripts intercepting the same event?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>