- Home /
Triggering events for overlaying UI Elements.
Hello!
I'm fighting a problem at the moment. I have one Panel elemen as the parent and another panel as its child. Both are overlapping.
However, when I implement the OnPointerDown method on both elements, it only gets triggered on the parent.
I want to have the event triggered on both elements. Is this possible?
On a button element, it already fires (only) the button click event on the button (but it ignores the parent event). Is it also possible, to have it fire both events?
If it is only possible to trigger one event, how is it possible to have the child element fire the event (like with buttons)? Is there somekind of priority in the events?
Cheers!
Your answer
Follow this Question
Related Questions
UnityEngine.EventSystems.. Trying to figure it out .js 1 Answer
Why does my code hang when calling a script in a multi-nested event function 0 Answers
Pressing two on-screen buttons at the same time, with the same touch - Android Unity Event-Triggers 0 Answers
Add an iteration of OnClick methods 1 Answer