[SOLVED] Mouse location to world space

So obviously I’m almost 4 years late to this party but I’m doing almost exactly what you are saying but getting the PointerEvent from OnDragCanceled, then using GetLastScreenSpacePosition and feeding it into DeprojectScreentoWorld.

This works perfectly in full screen but if in a windowed mode, like the editor, the trace seems to hit bottom-right to where it should do and not in a consistent offset it seems to be warped.

If i multiply the result of GetLastScreenSpacePosition by GetViewPortSize / GetScreenResolution before plugging it into DeprojectScreentoWorld the offset is different, the trace hitting closer to the center of the viewport than where I stopped dragging, no matter what side of the screen it is dropped. Anyone have any idea what the problem maybe?