unity get rid of mouse

Code Example - unity get rid of mouse

                
                        Cursor.lockState = CursorLockMode. locked;
Cursor.visible = false;