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