unity mouse coordinates to world code example
Example: unity mouse position to world
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);