I'm using this simple code on my custom FPS character controller:
void Start() {
// Lock Cursor
Screen.lockCursor = true;
}
I just want the mouse cursor to stay frozen where it is (ie: always in the center of the screen). I can not understand why the above doesn't work. It has literally no effect on the mouse cursor, I get the same with or without it.
↧