- Home /
Unity 5 UI Text Glitch (illegible characters)
Can anybody explain this? Testing on (and screenshot from) Android 5.0.2, OnePlus One CyanogenOS.
Happens completely randomly.
This is the code that updates the topmost text label:
void Update () {
if (!_pc.IsDead) {
CurrentScoreValue.text = "" + PlayerStats.Score;
HighscoreValue.text = "Highscore: " + PlayerStats.Highscore;
}
else if (_pc.IsDead)
{
PanelFailedMenu.SetActive(true);
FailedScoreValue.text = "" + PlayerStats.Score;
}
}
The bottom-most text label is never updated.
Editor view:
screenshot-2015-07-16-17-15-58.png
(32.5 kB)
issue1.png
(64.3 kB)
Comment
Try changing from Wrap and Truncate to overflow. Not sure if this will work but let me know.