2018.1 Cursor.lockState weirdness

After updating I can no longer lock the cursor in the editor. According to the forums it works in a build but I haven’t tried building yet.

edit: pausing/unpausing the editor and clicking outside the window and back in a couple times made it lock finally. I need to experiment more to figure out what is going on exactly. I have OnApplicationFocus code to lock the cursor again but that doesn’t seem to work right in the editor unless I also pause.

1 Like

Same thing is happening to me

Same here. Just upgraded to 2018.1, perfectly working lockstate now broken so I can’t playtest the game in the editor.

OK, and today it is working correctly. Not sure how that happened…