Answers for "unity camera.main.screentoworldpoint(input.mouseposition) not working"

C#
0

unity camera.main.screentoworldpoint(input.mouseposition) not working

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
Posted by: Guest on August-24-2021

Code answers related to "unity camera.main.screentoworldpoint(input.mouseposition) not working"

C# Answers by Framework

Browse Popular Code Answers by Language