需要对象挂有Collider组件才能计算射线，某些情况下不适用。if (Input.GetMouseButtonDown(0)){ Ray ray = Camera.main.Screen...