For context, was trying to make a code to lock the mouse cursor in a small box for dead zone aiming. Thus why I need to use get mouse and set mouse position.
You can make this code in a new blank project (I used UE 5.6). The code works in play mode Select Viewport, and play mode Standalone, but when I do play mode New Editor Window (PIE) then this bug appears.
I remember having an issue similar to this when making objective markers. I wrote this for the widget and it worked, but you may have to use the inverse of this or something for what you’re trying to do