"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:
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.
asked Aug 12 '17 at 10:24 AM in Blueprint Scripting
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.
answered Aug 16 '17 at 09:24 AM
Instead of OnMouseButtonDown use OnPreviewMouseButtonDown. It works on buttons.
answered Sep 29 '17 at 04:02 PM
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?
answered Sep 29 '17 at 08:17 PM
Change in behavior in UE4 by design. Reference other threads here:
https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1348178-please-include-drag-drop-fix-in-4-17-2 https://answers.unrealengine.com/questions/700718/on-mouse-button-double-click-bug.html https://issues.unrealengine.com/issue/UE-49100
answered Nov 30 '17 at 02:51 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here