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

Content in the editor is in one line #6

Closed
TecDesign opened this issue Oct 7, 2019 · 2 comments
Closed

Content in the editor is in one line #6

TecDesign opened this issue Oct 7, 2019 · 2 comments

Comments

@TecDesign
Copy link

TecDesign commented Oct 7, 2019

When opening the Real World Map Data project and select a converted osm to txt file, the materials, and import the map file, i get the following error.

FormatException: Input string was not in a correct format.
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) etc etc..

When using the NY text file out of the Scene Based Real World Map Data it will import the map data, but the content will be shown in the editor in one line, see picture below.
It makes no difference if the project is opend in Unity 2018.3.11f1 or Unity 2019.1.13f1.

osm 1

OSM

@TecDesign TecDesign changed the title Getting a stretched view Content in the editor is in one line Oct 8, 2019
@logfireMarco
Copy link

The error could be caused by the CultureInfo in CSharp. In the BaseOSM.cs file:
before:
... instance = (T)Convert.ChangeType(strValue, typeof(T)); ...
after:
... instance = (T)Convert.ChangeType(strValue, typeof(T), new CultureInfo("en-US")); ...

don't forget to add "using System.Globalization"

@codehoose
Copy link
Owner

This might be fixed by a PR for issue 5. Please get latest. Note that the default branch is now main.

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

3 participants