- Home /
UI text - A lot of them or One big one?
I need to update in real time a long piece of string with the UI Text. The system that I am working on is something like a debug console. I was wondering which is better for performance to display a large amount of text with the UI text component.
More specifically, I was wondering the performance impact on adding a new line to the large string (maybe more than a thousand lines?) vs having a text component for each of the lines. I was also thinking of splitting it into chunks so each text has about 100 lines.
Do you guys have any good ideas on approaching this problem?
Answer by jebemti · Feb 22, 2016 at 12:35 AM
For better performance use single text object.
If performance is a big concern then:
Disable Rich Text
Disable Interactivity
Disable Raycasting
Restrain from using UI effects (Outline/Shadows)
Use small text size
Does the UI have to redraw the text every time the string is changed? For example if I add a word each frame, will it take longer every time a word is added?
Your answer

Follow this Question
Related Questions
Optimal way to display a player's health with hearths? 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
C# making an optimized UI 1 Answer
Time unscaledDeltaTime not working? 0 Answers