unity mouse screen code example
Example 1: how to find the mouse position unity
Vector2 mousePosition = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
Example 2: get mouse position unity
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);