📜  unity camera.main.screentoworldpoint(input.mouseposition) 不工作 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.390000             🧑  作者: Mango

代码示例1
ScreenToWorldPoint receives a Vector3 argument where x and y are the screen coordinates, and z is the distance from the camera. Since Input.mousePosition.z is always 0, what you're getting is the camera position. -Aldonaletto