UMG Drag&Drop: A little help ?
Hello there fine folks of Epic :) I've downloaded the 4.5 preview from 09/09 and eagerly went about exploring. Its looking great and I'm excited for a stable build in the future.
One of the things that I'm interested in learning a little more about is the drag-drop functionality that you guys have been working on. As there's no documentation on this fresh feature just yet, could someone tell me what the current workflow is ? I'd love to play about with it :)
Best Regards and Much Love MrNexy
asked Sep 14 '14 at 09:52 AM in Blueprint Scripting
so far i have this:
if you have a widget derived from UserWidget you can implement the 'OnMouseDown' where you can execute a 'Detect Drag if Pressed' node, which will fire off a 'On Drag Detected' event on that widget. Implement your 'On Drag Detected' and execute a 'CreateDragDropOperation' node. derive a class from UObject and use it to pass any info you want. plug it into the payload pin of the 'CreateDragDropOperation' node. Now you can just implement the 'OnDrop' on any of your UserWidgets and the payload pin will hold your payload object ready for you to cast back to your derived class and use.
answered Sep 29 '14 at 01:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here