Is it possible for a widget to have some kind of collision?

Hey! I’m starting my first Unreal Engine project. I was thinking about implementing a mechanic where the user can press a button at a particular moment, the game pauses, and the mouse cursor appears. Upon a mouse click, a widget appears, and my goal was to know if the mouse touched a specific part of the widget. Is it possible to do so with the blueprints available?

Thank you!

You need to grab the OnMouseButtonDown event then use the position to figure out what was clicked. See Creating Drag and Drop UI in Unreal Engine | Unreal Engine 5.0 Documentation to get started.

1 Like