I wanted to use a custom PlayerController to be able move the cursor freely and click on widgets with no problem, but now I want to bring the cursor back to the middle of screen. How do I do that?
I tried
SetInputMode(FInputModeUIOnly());
SetInputMode(FInputModeGameOnly());
but they do not lock the cursor to the middle (I’m still able to move the cursor freely).
I did my best searching but couldn’t find anything that worked for me.
“Wait, you want it to stay visible, but at the center of the screen, even when you move the mouse?”
Yes that, like how the default PlayerController does (the one in Project Settings->Maps/Modes).