I builded a little sample game with first person shooter script. everything works well with it, and its windowed screen.
I start the game and when the mouse goes of the screen the character turns too much.
I want that the mouse cursor cannot go out of the screen. What is the way to do that ?
Any help would be apreciatted...
I tried hiding the cursor but it didn't work. The cursor can still go out of the window. Maybe the screen object can be helpful
Screen.lockCursor may be your only option in this case.
Available for consulting:
Just released The Farming Game: Software Edition, a remake of a popular board game. Check it out at the link below!
For tutorials on how to use Unity go to my website at: