- Home /
Mouse cursor lock!
So i want to lock the cursor to the CENTRE of the screen! This is my code: function Start (){ Screen.lockCursor = true; } But it doesn't lock the cursor to the centre! HELP!!
The reference for Screen.lockCursor says it hides it and places it in the center of the screen. I ran a quick test, and it clearly did not put it in the center...at least not run in the editor. There is no way within Unity to set the cursor position. There are solutions for specific platforms using .DLL and the like.
Answer by robertbu · May 23, 2013 at 04:58 PM
The reference for Screen.lockCursor says it hides it and places it in the center of the screen. I ran a quick test, and it clearly did not put it in the center...at least not run in the editor. There is no way within Unity to set the cursor position. There are solutions for specific platforms using .DLL and the like.
Your answer
Follow this Question
Related Questions
Mouse cursor texture change 0 Answers
using mouse cursor to change levels 0 Answers
Hide mouse cursor but get mouse moving (up or down) 1 Answer
Mouse cursor problem exporting in windows store 0 Answers
Mouse Coursor hide/show 1 Answer