I’m looking for an alternative because DetectDragIfPressed isn’t executing OnDragDetected at all.
Please tell me how to directly execute OnDragDetected from a mouse event or a button click event.
I’m looking for an alternative because DetectDragIfPressed isn’t executing OnDragDetected at all.
Please tell me how to directly execute OnDragDetected from a mouse event or a button click event.
Perhaps you could demonstrate what and how you’re doing it? Because dragging generally works well enough; there are certain scenarios where dragging gets iffy, though - like attempting to drag actual buttons, for example.
Even if I tried to explain it in detail, that is really all there is to it, so there isn’t much to say.
I am executing DetectDragIfPressed using mouse events on a widget derived from a User Widget. The widget has a simple configuration consisting only of an image set to “Visible,” and mouse events are executing without issues.
As I understand it, attempting to drag in this state should trigger OnDragDetected, but that never happens. It may occasionally be possible, but it will stop working after restarting the editor.
I tried several mouse events—specifically OnMouseMove, OnMouseButtonDown, and OnPreviewMouseButtonDown—but the results were the same, so I do not believe the issue lies there.
Also, I am using Common UI, but I am not using it for this drag widget.
I’m not sure if this will be helpful, but I’ve attached a screenshot just in case.