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