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"

"On Mouse Button Double Click" wont fire.

I've been following UnrealGaimeDev's series to make my inventory system on youtube, Im on this video: https://www.youtube.com/watch?v=S5gIELRnS5E∈dex=12&list=PLmKKTERcjTPKEPl0nk48Tpmj-iWmzqo_Q

Everything up to now is working exactly as it should be however in this most recent video i cannot get the OnMouseButtonDoubleClick to fire.

This is my blue print version of what he made: alt text

I've tried disconnecting everything but the "is mouse button down" from the branch and still nothing. If i preview the blue print while in play and double click in game the active route (sorry dont know its proper name) doesnt appear at all) I have tried decreasing the required speed of the double click in the project settings and have my player controller set to: Show mouse cursor: True, Enable Click events: True, Enable Mouse Over events: True

Any help/pointers would be appreciated.

Product Version: UE 4.17
untitled-1.jpg (473.4 kB)
more ▼

asked Aug 12 '17 at 10:24 AM in Blueprint Scripting

avatar image

138 7 15 19

avatar image umbrelluck Aug 14 '17 at 09:00 AM

It seems like we were watching the same inventory system tutorial) And yes, for me it also dont work

avatar image umbrelluck Aug 14 '17 at 09:03 AM

and to tell you the truth, problem is not only here, problem is everywhere what is connected to pressing left mouse button. The interesting thing is that everything works correctly, when the slot is empty. What I mean is every event fires correctly. But when the slot is filled, then problems arise.

avatar image Ninjin Aug 14 '17 at 10:42 AM

Well, if "On Mouse Button Double Click" won't even get fired, you are showing us the wrong blueprint. Show us the one where you call the function. <3

avatar image umbrelluck Aug 14 '17 at 10:48 AM

No everything right. We both overrided standart functions that fire automatically when user presses mouse button. The thing is that when right mouse button is used everything works and left mouse button worls only when the slot is empty.

avatar image Eightshot Aug 14 '17 at 11:48 AM

Not sure what you mean there Ninjin, Its an override function, it should fire each time the button is double clicked. Did i miss something?

avatar image umbrelluck Aug 14 '17 at 11:52 AM

It should but it doesnt fire on the left mouse at all

avatar image Ninjin Aug 14 '17 at 01:24 PM

Well, I'm not a wizard and you can't expect me or others to watch the whole tutorial and re-create everything, so adding what function you overwrote and where you call this function would be great to know.

avatar image Eightshot Aug 14 '17 at 03:01 PM

You dont need to watch the whole thing:

Create a new project. (im using top down template for this example) Create a widget and place a button on the canvas override the function "OnMouseButtonDoubleClick" drag off the OnMouseButtonDoubleClick and place a print string, connect to return node and place a "handled" on the return value save, compile, hit play

double left click, nothing double right click or double middle mouse click and you WILL get the text.

It seems to be only on the left mouse button that there is an issue.

avatar image JavierRamello Dec 17 '17 at 01:15 PM

OnMouseButtonDoubleClick is still not being fired with umg buttons in 4.18. Can someone confirm this please? Cheers, J

(comments are locked)
10|2000 characters needed characters left

4 answers: sort voted first

I've fixed this with the help of some none on the forum. It involves a little tom foolery but it works

If you make the the widget like this instead [Overlay] . [Border] . [Image] . [Text]

The do everything as you would have before but replace the button with the border and the set style with set brush Then override the functions "one mouse enter" and "on mouse leave" and just set the brush in those to (OME) hovered brush and (OML) default brush it functions in exactly the same way as the button does.

more ▼

answered Aug 16 '17 at 09:24 AM

avatar image

138 7 15 19

avatar image Skylonxe Aug 16 '17 at 03:26 PM

This is workaround suitable only for your project. Not everybody can replace button with different element. Broken On Mouse Button event for left mouse click is 4.17 bug and hopefully it will be fixed soon.

(comments are locked)
10|2000 characters needed characters left

Instead of OnMouseButtonDown use OnPreviewMouseButtonDown. It works on buttons.

alt text

more ▼

answered Sep 29 '17 at 04:02 PM

avatar image

819 9 15 27

avatar image umbrelluck Sep 29 '17 at 04:57 PM

Thanks this works!

avatar image StuntThumper88 Jan 20 '19 at 08:30 PM

This isn't a solution for double click though?

(comments are locked)
10|2000 characters needed characters left

Another solution for this project Duplicate onmousebuttondoubleclick Run Onclicked(slotbutton) - Make your own doubleclickfunk as in throw widget on '-' and '+' buttons(incr,delay 0.3, click count etc..) Not so good but easy and fast ps Anyone knows is it really bug? alt text

more ▼

answered Sep 29 '17 at 08:17 PM

avatar image

6 1 2

avatar image eXpoweRR Sep 29 '17 at 10:31 PM

Finally got the same problem with on mouse button click, only lmb doest hit event

Also, while debugging it crashes in 50% times using checkpoint on 'onmousebuttondoubleclick' etc xD

avatar image umbrelluck Sep 30 '17 at 02:09 PM

ok, thanks

(comments are locked)
10|2000 characters needed characters left
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