unity get point where mouse is pointing code example Example: unity get mouse position Vector3 worldPosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);