Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursor can't move on scene switch Unity 5

I have an issue in my project at the moment, after a player finishes a level a new scene is loaded but I'm not able to move the mouse cursor. To begin with it wouldn't show either so I added the code;

Cursor.visible = true;

Now the mouse cursor is visible but I still can't move it from the center of the scene. Any help or advice would be appreciated.

like image 499
Ethranes Avatar asked Feb 11 '26 06:02

Ethranes


1 Answers

You may need to reset lockState to None as well:

Cursor.lockState = CursorLockMode.None;

See Cursor.lockState documentation.

like image 139
TerraPass Avatar answered Feb 16 '26 04:02

TerraPass



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!