All of the answer thread I’ve seen have not helped, the Unity 5 cursor locking is confusing ; and the old way of doing it doesn’t work anymore.
Can someone please explain how this all works? NOTHING, helped. The documentation, other thread, etc.
All of the answer thread I’ve seen have not helped, the Unity 5 cursor locking is confusing ; and the old way of doing it doesn’t work anymore.
Can someone please explain how this all works? NOTHING, helped. The documentation, other thread, etc.
What part of the documentation don’t you understand? It seems pretty explicit to me: Unity - Scripting API: Cursor.lockState
Cursor.lockState = CursorLockMode.Locked;
and you probably want to hide the cursor too
Cursor.visible = false;
I tried yours Erebel, but when I do it locks my cursor in the bottom left of my screen. My monitor resolution is around 1600x1000; I don’t know if that’s it.
Tano, it just didn’t explain it enough for me. There’s no “If this happens, then…”, and things like that. It literally just told you what the code was and no debugging/issues that might occur.