Search Unity

2018.1 Cursor.lockState weirdness

Discussion in 'Editor & General Support' started by Silly_Rollo, May 4, 2018.

  1. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    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.
     
    Last edited: May 4, 2018
    joshcamas likes this.
  2. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,278
    Same thing is happening to me
     
  3. Chris_Payne_QS

    Chris_Payne_QS

    Joined:
    Jul 16, 2016
    Posts:
    84
    Same here. Just upgraded to 2018.1, perfectly working lockstate now broken so I can't playtest the game in the editor.
     
  4. Chris_Payne_QS

    Chris_Payne_QS

    Joined:
    Jul 16, 2016
    Posts:
    84
    OK, and today it is working correctly. Not sure how that happened...