unity how to get the mouse position code example
Example 1: unity how to convert mouse screen position to world position
Camera.main.ScreenToWorldPoint(Input.mousePosition)
Example 2: unity get mouse position
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);