unity get map position cursor is looking code example
Example: unity how to convert mouse screen position to world position
Camera.main.ScreenToWorldPoint(Input.mousePosition)
Camera.main.ScreenToWorldPoint(Input.mousePosition)