Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Why "Cursor.lockState" does not work?

Discussion in 'Documentation' started by Rotecks, Jun 29, 2018.

  1. Rotecks

    Rotecks

    Joined:
    Dec 17, 2014
    Posts:
    49
    Hello to everyone, especially the Unity team.
    I have a very simple question. Why Cursor.LockState still does not work?

    0) I had this problem for a long time, maybe a year ago.
    1) I studied the documentation: https://docs.unity3d.com/ScriptReference/Cursor-lockState.html
    2) I was looking for an answer in the network:
    https://forum.unity.com/threads/cursor-lockstate-troubles.278221/
    https://forum.unity.com/threads/locking-the-mouse.294453/#post-1941423
    https://answers.unity.com/questions/1020927/cursorlockstate-not-working.html

    From this it can be seen that this mistake has already taken place for more than 3 years.

    Guys, it's time for great achievements, you need to fix it;)
     
  2. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    891
    Just upgraded to 2018.2.2, the latest and greatest. Was never a problem before. Now my cursor won't lock after any alt-tabbing ruining all sort of first person tracking. Still can't find a fix except for a mention that it's fixed in 2018.3 =[