CreateDragDropOperation from Class Reference not possible?

BDC_Patrick
Thu, 24 Aug 2023 11:39:46 +0000
UI

Hi there…

today I tried to make my Draggable Button more modular… so I wanted the DragDropOperation Class being an exposed variable and create the DragDropOperation (DDO) from that…

This is what the DDO Create looks like:

As you can see… I also added a function to get the actual class from variable… and Return that exact class type (BDC_DragDropOperation).
All my future DDOs will be child classes of BDC_DragDropOperation…

The ConstructDDO Class is this:

Now the interesting thing:
When I link the Return of that function to the class Input of the CreateDDO… The DragAndDrop functionality gets broken and is not working anymore…
I really need to hardcode the Class into the CreateDDO node (as on the first screen) to have a functional Drag & Drop…

Is this a Bug? A forgotten limitation that you are not allowed to use class references as Input for the CreateDDO node?

PS.: Interesting side fact… when I link the return to the CreateDDO… the Parameters (SourcePosition, SourceWidget, SourceOffset) of the CreateDDO are the same… so… the returned class gets registered correctly as a reference to a BDC_DragDropOperation Class…

Any advice on how to make that possible… would be welcome

10 posts - 3 participants