How to propagate click events in UMG Border?

anonymous_user_be4a1715
Thu, 06 Sep 2018 00:43:54 +0000
UI

I have a border on the right side of the screen, with images in it. I am trying to do the following:

1. If the mouse clicks anywhere within the border, don’t move the unit. If the click was on an image, execute some logic.

2. If the mouse clicks outside the border, move the character there.

What I did is I added “On Mouse Button Down” and “On Mouse Button Up” calls for the border. This allows the character to “not move” when I click inside the border. I am returning “Handled” for the bound events.

Update:
I just realized that Border can contain only 1 item. I will try to achieve the same thing through other mechanism.

However, if I click on the picture inside the border, I am not receiving events, since the border is consuming them.

How do I check which picture I am clicking inside the border? Is there a way to propagate the mouse click to the children of the border so that the clicked picture fires an event?

2 posts - 2 participants