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?
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?