- Home /
Text component changes the text but doesn't remove the previous version.
I have a Text component I update on every score change. But the update changes the text but doesn't remove the previous version. Old text can be seen behind the new text.
The code that sets the Text.text:
ScoreGameObject.text = $"{Score:D5}";
Comment