how to get the world point position of a mouse unity code example
Example: unity mouse position to world
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);
Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);