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;
}
↧