How dose UI widget block line trace?

Hi.
I have an actor in the level.
When I click LMB on the actor a line trace will be sent from screen center point to the actor.
when the line hit the actor it creates a UI on the actor location.
when not hit(click on empty space),the UI disappears.

And here I have an issue.
I clicked on the actor first time and the UI showed up covering the actor.
if I clicked the second time on the actor, another UI will be created,seems the line trace go through the UI and hit the actor behind it.
How do I make the Ui to block line trace?

I figured it out! Just use a button to be the widget background.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.