Announcement

Collapse
No announcement yet.

Get Mouse Position While Dragging from UMG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get Mouse Position While Dragging from UMG

    Im trying to get the Mouse Position while dragging an Object from the inventory & starting a Line Trace By Channel from there. I'm able to do this on the "on drop" function, but I'm not able to find out how to get the position of the mouse during the drag operation. It seems like the mouse position isn't being updated, after the drag operation starts.

    Has anyone found any solution to this?

    br c.

    #2
    Mouse position is part of the data passed in the drag / drop operation data.

    Comment


      #3
      Thank you for your reply. But I simply can't figure it out.

      This is my "on drag detected" function override. It gives out one position when the drag starts.

      Click image for larger version

Name:	4321e3e80e.png
Views:	1
Size:	211.0 KB
ID:	1087148

      an this is my "on drop" function override. It gives out one position when the drop happens.

      Click image for larger version

Name:	120318bce6.png
Views:	1
Size:	117.0 KB
ID:	1087149

      So my problem is how to get the mouse position in between this events? When the drag event starts I#m not able to get the mouse position through the player controller. Is there anything simple i've been missing?

      thank you for your help! c.

      Comment


        #4
        The player's mouse position is not accurate during drag/drop because mouse movement events are not sent, drag movements are sent. You have to use the mouse/cursor position data on the drop operation, not the player controller.

        Comment

        Working...
        X