You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to parse a JSON in the Unity editor on Mac OS X, and it seems that the current CultureInfo is using a different decimal separator on my system. Hence, it fails to parse floating point numbers.
The solution is to parse doubles with the invariant NumberFormatInfo, like it was written in JSONWriter.
The text was updated successfully, but these errors were encountered:
I spent half a day looking for why my game doesn't work correctly on some devices. Turn out it breaks on phone using a localization different from English.
And I made the same fix as yours.
I tried to parse a JSON in the Unity editor on Mac OS X, and it seems that the current CultureInfo is using a different decimal separator on my system. Hence, it fails to parse floating point numbers.
The solution is to parse doubles with the invariant NumberFormatInfo, like it was written in JSONWriter.
The text was updated successfully, but these errors were encountered: