Hello there!
I am trying to find a way to lock my mouse inside the boundaries of the window/viewport for my RTS camera. I have tried doing
GEngine->GameViewport->Viewport->LockMouseToViewport(true);
The issue is that this causes the editor to crash. I have tried this in the constructor for the pawn, HUD, and player controller, but all cause the editor to crash.
Thanks!
Connor Brewster