On over events not working while dragging widget

Hi i’m trying to make a widget that when is dragget onto a specific floor actor it spawns another actor.

in the floor actor (tile) i put a event on begin over to get the position of the tile, i also set a boolean to tell the widget if i’m over it or not with the cursor.

in the widget blueprint i have the On Drag Canceled event that when the widget is released checks if the cursor is over the tile with the boolean.

The problem is that the boolean will be always false while dragging because the HoverBegin event doesn’t start while dragging. How can i make the event work while dragging? Thanks

Tile and Widget blueprints:

Yes. OnBeginCursorOver will not fire while dragging. (unless you started dragging from that object I think)

Can you try using repeatedly GetHitResultUnderCursorBy... instead and tell us if it works?

Thank you for the reply. I tried but couldn’t think of a way to make it work, can you elaborate more? thanks

This simple graph will return the name of the object under your cursor regardless of any UI elements:

Of course you might not want to do it all the time, only when dragging or only when releasing. It is your call but this is how you can go around the fact that OnBeginCursorOver and get the object under your cursor.

Thank you, now is more clear, but for me this event too is not registered while dragging, am i doing something wrong? or is it like that?

I’m not sure what you mean by “…this event too is not registered while dragging…”. You are missing EventTick? Where are you trying to implement this?

Note in the top of the screenshot “BP_MyPlayerController > Event Graph” - this is blueprint is done in the player controller.

i added the function to the event tick node of my player controller but the node was not active while dragging, i tried adding a print string to it to see if it printed while dragging and didn’t, so i guess it has the same problem. for now i found another solution that does not involve dragging…

I’m not sure how is this possible. Can you screenshot the tick of your player controller?