- Home /
Question by
ginorme · Jan 20, 2019 at 01:05 PM ·
uitextperformancestringperformance optimization
1 UI Text vs 2 UI Text
The code can be:
public Text txt;
int num;
void Update ()
{
num++;
// 1 UI version
txt.text = "Coins" + num.ToString();
// 2 UI version
txt.text = num.ToString();
}
so the right question could be: "It's worth having 2 UI?"
coins.png
(37.1 kB)
Comment
Answer by RogueMacro · Jan 20, 2019 at 06:02 PM
@ginorme Maybe, it gives a slightly better performance, but if performance is a problem, check out this answer
Your answer
Follow this Question
Related Questions
Get Lines of a UI text 4 Answers
Display Text on Many Moving Cubes 0 Answers
Unity UI: Text Adventure 2 Answers
UI Text Optimization? Updating Geometry seems to be slow 0 Answers
rich text issue 3 Answers