I’ve tried using the
Screen.lockCursor
method that should lock the cursor into the center of the screen, now this works while my mouse is in the game window; However if I’m in windowed mode and I move my mouse outside of the game window and click, it will click outside of the game, thus causing a problem.
This also happens while running the game in fullscreen, if I move my mouse to my other monitor I can click out of the game.