Answers for "unity how to use screentoworldpoint"

C#
0

unity screentoworldpoint

public Camera yourCamera;
public Vector3 yourPosition;

yourCamera.ScreenToWorldPoint(yourPosition);



//For example to get positions of the mouse

Camera.main.ScreenToWorldPoint(Input.MousePosition);
Posted by: Guest on May-17-2021

Code answers related to "unity how to use screentoworldpoint"

C# Answers by Framework

Browse Popular Code Answers by Language