Unity Set Mouse Cursor Lock

Cursor.lockState = CursorLockMode.Locked;
Frail Flamingo