Hey, I see that someone asked something like that, but I think my problem is different.
So:
- I have a TextAsset named teste.
- the first line of this .txt file is “title”
And I have this function:
void updateText(){
string[] lines = teste.text.Split('
');
foreach (string line in lines){
if (line.Equals(“title”)) {
//Do something
}
Debug.Log(line);
}
}
Even that Debug.Log is returning to me title, but that if statement is always returning false and I don’t understand why. Care to help?