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

Answer by KCharlier

$
0
0
Hi,all my projects using cursorLocked are stucked. The mouse stay there shaking at the right of the gamescreen. There has been two upgrades before this problem happens. i upgraded to unity 2019.2 and My windows 10 upgraded to ver 1903 Nothing goes well anymore, and i don't know how to remediate. Here is the simple code that was still working last week... void Start() { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; } private void OnMouseDown() { Cursor.visible = true; Cursor.lockState = CursorLockMode.None; }

Viewing all articles
Browse latest Browse all 16

Trending Articles



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