I’m making a program where the position and location of the player is tracked and saved in a text file to be read later. For some reason when I save the position data so:
posData.Add(transform.position.ToString() + " : " + transform.rotation.eulerAngles.ToString());
the floats for X Y and Z are all rounded down to a single decimal point.
I could fix this by multiplying every number by 100 and dividing again on the other side but that feels sloppy. Is there a way to preserve the other 6 decimal points of data?