How to get mouse position?

Imgur
i make like this. when drag cancelled ,move widget to mouse position. but i looks like does not get mouse positon. how to get mouse position for set position in viewtarget?

other problem. when i drag widget,widget size is to small. why this?

You can get and set mouse position via UE api from c++ but rama already made plugin with nodes allows you to work with some api function “SetMousePosition” and “GetMousePosition”
https://wiki.unrealengine.com/Rama’s_Vertex_Snap_Editor_Plugin#Plugin_Download

For dragging functionality see new UMGInventory twitch tutorials, you can find source on forum.

thanks for comment.
can do only blueprint?

Imgur

Here’s an example of how to get the mouse position. I showed how to print them to the screen, but you can use the variables any way you’d like