Image color change does not work when dragging.

I tried changing the color within the user widget inside OnDragDetected, but it isn’t working. It works when executed from other locations, but not when drag. Even though the changes to the SizeBox are working. Something like this really ought to work. There shouldn’t be any reason for it not to, yet it doesn’t.

(post deleted by author)

Hello @SemanticRain619 ,
You could try using the On Mouse Button Down event. Use the Mouse Event as the input and select Left Mouse Button as the drag key. Then, connect the Return Value to the Return Node. This way, when you hold down the left mouse button and start moving the cursor, the On Drag Detected event will be triggered, allowing you to start your Drag and Drop logic.

Then, in On Drag Detected, you can place all the logic related to creating and configuring the Drag and Drop operation.

Finally, In the On Drop event, make sure to set the Return Value to True when the drop operation is successfully handled. Returning True tells the system that this widget has processed the drop event, preventing it from being treated as unhandled. This is also where you should place the logic that determines what happens when the dragged widget is dropped onto the target widget.

I’m also including these videos. Although they’re a bit old, they provide a good overview of how the Drag and Drop system works and may help you troubleshoot the issue or identify anything that might be missing from your current implementation.

Drag and Drop #1

Drag and Drop #2

Hope it helps!