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