Search Unity

Kinda odd Cursor Lock Stuff

Discussion in 'Scripting' started by Foestar, Jan 16, 2020.

  1. Foestar


    Aug 12, 2013
    So I was wondering if anyone else has had problems with Cursor Lock? I have never had an issue before and for some reason now I have to
    Code (CSharp):
    1. Cursor.lockState = CursorLockMode.None;
    before I can
    Code (CSharp):
    1. Cursor.lockState = CursorLockMode.Locked;
    otherwise the mouse appears in the center of the screen with a weird flickering effect. None of my other projects though have done this. And it only does this in the build, not in the editor. Am I missing something? 90% of the time it's something stupid and simple for me.