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

Answer by JonnyD

$
0
0
Just to give an update, since this topic is out of date but still high on search results, you should use: `Cursor.lockState = CursorLockMode.Confined;` This has been available since at least Unity 5.2.

Viewing all articles
Browse latest Browse all 16

Trending Articles



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