Widget to spawn on mouse on left click

Hi

I’m having an issue where my loot window appears off screen. I’d like the loot window to appear where the cursor is, (Goal: I left click the corpse, loot window opens where my mouse is.)

Here is my loot blueprint. I’m just not sure where or how to add in the positioning of the UI widget. Hoping for some guidance from someone with more experience.

thanks

You need to translate world to screen coords:

If you’re using a canvas instead of the viewport, get the widget as canvas child and set the position in the canvas.