UE5: GetScreenSpacePosition() always return (0,0)

407 Views Asked by At

I'm trying to extract the mouse position from FPointerEvent, but no matter what, it always return the coordinate of (0,0).

Note that I'm aware of APlayerController::GetMousePosition() function, but I'll be implement the same to dragging UMG so getting mouse properties from player controller won't work

code

Btw, I'm using UE5

0

There are 0 best solutions below