I need to obtain display coordinates of the mousePosition by clicking "Fire1" button. The script is very simple, and I get what I need. But I would like the coordinates to be more precise.
public class exmp : MonoBehaviour
{
public void Update()
{
if(Input.GetButtonDown("Fire1"))
{
Debug.Log(Input.mousePosition.x + ", " +Input.mousePosition.y);
}
}
}
Currently I'm getting smth like "x, y" or "x.5, y.0", but it is important for the project to get something like "x.abcd, y.efgh". In some examples I've seen that this is quite possible, but I can't figure out how.
Thanks in advance!