center mouse unity

Code Example - center mouse unity

                
                        Screen.lockCursor = true;