[bug?] Drag drop On Drag Leave
I have buttons that the user can click to get info, or drag and drop into the map to spawn actors. I have the button setup to have a drag drop operation that doesn't do anything, I just use it to get the functionality for dragging. I have it set up so in the button blueprint, the event On Drag Leave sets the mode in the player controller to "spawning". Within the player controller blueprint, on tick, I draw the temporary actor under the finger while the mode is spawning (finger is being dragged) and on the touch input ended withing the player controller, I end the drag, spawn the final actor, and set the mode back to waiting. Everything works in the editor, but I get a possible bug when I play on the android device...
It works if I drag and drop, like normal. But if I do a quick tap on the button, the mode will stay "waiting", as expected then if I touch elsewhere on the screen, the button's On Drag Lave event gets called, switches the mode to spawning, and then spawns the object... If I touch on the button and move slightly, this doesn't happen. only if it is a quick tap will the button's On Drag Leave event get called, even though it isn't a drag off the button, it is a tap elsewhere on the screen.
asked Jan 25 '16 at 09:19 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here