Vector2 screenPosition = new Vector2(Input.mousePosition.x, Input.mousePosition.y); Vector2 worldPosition = Camera.main.ScreenToWorldPoint(screenPosition);