mouse position not working while dragging with left mouse button

You would need to deproject mouse coordinates back into 3d space and trace from the camera to a hit location:


I’m saving the resulting vector in *LastHitPos *variable. You can use in in the *onDrop *override and spawn an actor at those coordinates.