Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Cursor not locked.

Discussion in 'Scripting' started by Corrothon, Apr 25, 2021.

Thread Status:
Not open for further replies.
  1. Corrothon

    Corrothon

    Joined:
    Jun 11, 2019
    Posts:
    60
    I've had my cursor locked in my game since 2020 and today when I opened my project to work on it, it suddenly is unlocked. I edited the script and added "Cursor.lockState = CursorLockMode.Locked;" but it's still not locked! Is it because I imported Input System yesterday? Please help!
    The cursor is visible and I also have a MouseCursorInvisible script.
    *reposted since no one saw the other one*
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,756
  3. Corrothon

    Corrothon

    Joined:
    Jun 11, 2019
    Posts:
    60
    Last edited: Apr 25, 2021
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,400
    Because it's against the rules. Do not spam again.

    --Eric
     
    Kurt-Dekker likes this.
Thread Status:
Not open for further replies.