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

Answer by Joshua

$
0
0

All you can do is use Screen.lockCursor to lock the cursor in the center of the screen and hide it. Don't just do it in your Awake function because if a player presses escape you'll have to reinitialise it. Do it OnMouseDown possibly.


Viewing all articles
Browse latest Browse all 16

Trending Articles



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