Вновь вопрос.
public Vector3 CameraPick()
{
Vector3 groundPoint;
RaycastHit hit;
Ray ray = targetCam.camera.ScreenPointToRay(Input.mousePosition);
Physics.Raycast(ray, out hit);
groundPoint = hit.point;
return groundPoint;
}
Так я узнаю координаты точки под мышкой, а как узнать в какой объект я попал.