I am having a string problem, that really doesn’t make any sense to me.
The following works as expected, including the newlines…
string Text="This is
a Test";
GUI.Box(new Rect(DialogWindow), Text, MySkin.box);
The above displays a box at the DialogWindow location with the following…
This is
a Test
Which is perfect.
Now, if instead of setting the string in code like that, I pull the exact same string from a SQLite database, it displays like…
This is
a Test
Debugging out both the string created in code, and the string pulled from the database, they appear to be identical.
I cannot figure out why, when using the string from the database, the newline character is displayed instead of a linefeed being inserted.
Anyone else ever see this problem? Any ideas how to get this to work as expected?
Any help is greatly appreciated.
-Larry
EDIT: As a test, I just copied the text from the SQLite table, and pasted it into the hard coded string, just to make sure they were truly identical. Same results. The hard coded string works, the string pulled from the database does not.