- Home /
Question by
adriansnetlis · Apr 26, 2015 at 09:37 PM ·
cursor
Unity 5 lock mouse
I want to know a script that locks mouse in center and unlocks when I press a key(for example, ESC). It should work with Unity 5. I also need to know how to call it and how to execute it(on which object to put it on). I have a character controller(FPS) in scene. Could you help me?
Comment
Your answer
Follow this Question
Related Questions
Locking the cursor in Unity 5? 3 Answers
How to use CursorLockMode in webGL 0 Answers
Access selected text or cursor position of TextArea in CustomEditor 0 Answers
How to rotate an object according to the cursor position ? ( C# ) 0 Answers
Cursor.lockState = CursorLockMode.None; wont work in build 1 Answer