Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUIChartEditorSprites / float.TryParse doesn't play well with certain system languages. #4

Open
RoxaneMorin opened this issue Jan 11, 2021 · 0 comments

Comments

@RoxaneMorin
Copy link

"if (!float.TryParse(text, out float res))" (GUIChartEditorSprites.cs, line 74) failed to parse on my French language system.

Adding globalization parameters fixed the issue:
"if (!float.TryParse(text, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out float res))"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant