Quantcast
Channel: Answers for "how to stop mouse going out of the screen ?"
Viewing all articles
Browse latest Browse all 16

Answer by jcrosby

$
0
0
I know this is an old answer, but it helps to keep old answers update with current information. I found a much easier and up to date solution: Cursor.lockState = CursorLockMode.Confined; // keep confined in the game window Cursor.lockState = CursorLockMode.Locked; // keep confined to center of screen Cursor.lockState = CursorLockMode.None; // set to default default

Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>