DragDropOperation mouseDownOffset?

Hi there.

I currently struggle with a Problem…

Creating a DragDropOperation as follows:

Works like a charm.

BUT - As you see, I use Mouse Down as Pivot.

For my runtime editor, I need to get the Offset of the Mouse Down - But it is not listed as a variable somewhere. There is only “Offset”, but this is not set to anything other than {0,0} when Mouse Down is the Pivot.

Is there a way to get that offset, to place an overlay correctly?

Hello.
You might have to capture the offset yourself, store it in a variable in the widget that you are dragging and pass it to DDO.

This is OnMouseButtonDown function in the widget that you have to drag.

Cheers,
P.

1 Like