if (Input.GetMouseButtonDown(0))
{
RaycastHit2D hit = Physics2D.Raycast(cam.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);
if (hit.collider != null)
{
Debug.LogFormat("Hit.Point: {0} | Pos: {1}", hit.point, hit.transform.position);
}
}