Answers for "unity camera 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

C# Answers by Framework

Browse Popular Code Answers by Language