How i can make that Unity don't round me the numbers of the Vector 3 Array?
I program this: private Vector3[] Tamany = { new Vector3(0f, 0f, 1f), new Vector3(0.22f, 0.22f, 1f), new Vector3(0.12f, 0.12f, 1f), new Vector3(0.02f, 0.02f, 1f) }; And if i make a Debug.Log(Tamany[1]) --> unity says me that is 0.2,0.2.1.0 and no 0.22,0.22.1
Comment
Answer by Dave-Carlile · Nov 23, 2015 at 09:31 PM
If I remember right Unity does some formatting when logging vectors.
Try this:
Debug.Log(string.Format("{0},{1},{2}", Tamany[1].x, Tamany[1].y, Tamany[1].z));