At the user’s name part(middle), why user’s name has one line blank?
I wrote code like
public void SetHighInfo()
{
var high = HighScore.Instance;
rankText.text = "";
nameText.text = "";
scoreText.text = "";
for (int i = 0; i < high.scoreInfo.Count; i++)
{
rankText.text += "" + high.scoreInfo.rank + "\n";
nameText.text += high.scoreInfo.name+"\n";
scoreText.text += "" + high.scoreInfo.score + "\n";
}
}
As above, I just used “\n” once at name part. But result shows like using twice \n.
Why? How to fix?
Thanks.