Quantcast
Channel: Questions in topic: "lockcursor"
Viewing all articles
Browse latest Browse all 92

How can i lock the mouse cursor in the middle of the screen ?

$
0
0
What i'm doing now is in the Update: void Update () { Cursor.lockState = CursorLockMode.Locked; Cursor.lockState = CursorLockMode.None; } But that make the cursor shaking/stuttering when moving the mouse around. And in unity 5.6.1f1 Personal the class Screen don't have the property lockCursor. Is there any other easy way to center and lock the mouse cursor ?

Viewing all articles
Browse latest Browse all 92

Trending Articles



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