Apologies for the 2 year old bump, but this issue persists and all the info needed is here :)
`Cursor.lockState = CursorLockMode.Confined; // keep confined in the game window`
Trending Articles
More Pages to Explore .....