How to get mouse position?

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”’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?


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