[Bug] Export graph function uses user's locale when writing vertex coordinates

  • A* version: 5.4.5
  • Unity version: 6000.2.0f1

The export function uses user specific locale when writing data which might lead to a corrupted mesh export. E.g. on my machine it uses “,“ instead of “.“ as a decimal part separator:

g navmesh
vt 0 0
v 40,16 2 -376
v 34,41 2 -376
v 34,41 2 -379,25
f 1/1 2/1 3/1
v 34,41 2 -379,25
v 34,41 2 -376
v 22,41 2 -386,25
v 10,41 2 -376
v 10,41 2 -393,25
f 7/1 8/1 6/1
f 5/1 7/1 6/1
f 4/1 5/1 6/1
...

If we replace all commas in the file it opens with no errors.

Thanks for the submission, I’ll tag Aron in it to review :slight_smile: