Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Mouse position not updated while dragging

I'm trying to drag a UI widget around using the drag and drop functions in UMG, the thing is I have particle beam set to follow the mouse around as it's dragging the widget.

Basically I have the source of the beam set to a static location and the target point of the beam set to the mouse position every tick. If I'm not dragging the widget around it follows the mouse no problem. If however I'm dragging the widget the target point of the beam will only appear at the point where I began dragging the widget, it doesn't follow the mouse anymore.

Is this a bug? It seems like the mouse position isn't being updated if you're dragging stuff around.

Product Version: Not Selected
more ▼

asked Mar 03 '15 at 06:59 AM in Blueprint Scripting

avatar image

45 20 21 23

avatar image ja0335 Aug 27 '15 at 03:17 PM

Same problem here

avatar image charisti Sep 05 '15 at 02:23 PM

I have the same problem. Cant find a way to get the mouse position while dragging. Only on drop etc... Anyone found a solution to this yet?

avatar image Servelat Dec 01 '15 at 01:13 PM

There is another similar question: https://answers.unrealengine.com/questions/160885/umg-461-mouse-drag-freezing-other-widgets.html

Seems like there is a workaround for the problem (using UMG cursor) but it does not work for me because of somewhat poor mouse capturing behavior.

There is still a problem with GetMousePosition not returning the correct data in 4.9.2

avatar image xlar8or Jun 03 '17 at 10:00 AM

Same problem here, want to still be able to corner pan my camera while dragging items and right now i can't !

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I have solved this, handling the On Mouse Move Event.

In here you can track the mouse position, as you can see in the attachment.

alt text

captura.png (93.1 kB)
more ▼

answered Sep 07 '15 at 04:04 PM

avatar image

51 2 8 9

avatar image Wallenstein Feb 22 '17 at 07:26 AM

This does NOT work while using the drag&drop functionality

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question