UMG Drag Drop Not Working - 4.20 (Packaged / Standalone)
We've encountered which seems to be a bug after upgrading our project to UE 4.20.1. Drag and drop operations just become broken on packaged builds or launching stand-alone, despite working inside the Editor (PIE).
I've created a new project to isolate the problem, this is how it is configured:
Slot component (which will be dragged): UMG UI (no behavior, just using the slot-component ui showed previously): Level Blueprint (used to add the widget to screen)
The problem: Each slot ca only be dragged once, after this "OnDragDetect" event will not trigger anymore, (this only occur when running Packaged builds or launching stand-alone version through the editor).
Is this an confirmed bug ? Any help would be appreciated. Thanks!
asked Aug 14 '18 at 10:36 PM in Bug Reports
This problem was occurring since i was passing the same widget (self) as payload parameter during drag operation creation, which seems to trigger some recursive conflict on UMG input handling system. Passing only the image (or any other component) as payload parameter will fix this issue.
I still think this is a bug, since PIE / Stand Alone and Packaged version behaves differently, also, this was not happening on UE 4.19.
Edit: It's not the payload that is the issue, its the Default Drag Visual, you will have to create a throw away widget in place of using self.
My default drag visual is the same as the widget being dragged, (No way! Like, who in their right mind does this right??!) which caused me this issue, after reading this post, removed the payload, and still had the same issue in standalone. After restoring payload to self, and removing the Default Drag Visual, all works again.
Had the same issue with 4.22. I fixed it by using the Image variable instead of self. Also had to resize the image in my case. An additional widget was not necessary.
Still think the editor PIE should not behave different than the stand alone version in this case.
Follow this question
Once you sign in you will be able to subscribe for any updates here