how to lock a rect transform to the cursor unity code example Example: unity mouse lock Cursor.lockState = CursorLockMode.Locked;