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