Raycast von der Kamera bis zur Mauseinheit

Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hit, 100)) {
	Debug.Log(hit.transform.name);
	Debug.Log("hit");
}
Ugliest Unicorn