Skip to content

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

Description

@RoxaneMorin

"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))"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions