What i'm doing now is in the Update:
void Update ()
{
Cursor.lockState = CursorLockMode.Locked;
Cursor.lockState = CursorLockMode.None;
}
But that make the cursor shaking/stuttering when moving the mouse around.
And in unity 5.6.1f1 Personal the class Screen don't have the property lockCursor.
Is there any other easy way to center and lock the mouse cursor ?
↧