I've an object that contains a TextMeshProUGUI component, imagine that this object is used as a balloon in a dialog sequence so, based on the user input, the text inside this balloon change throught the dialog progress.
I manually set the text at each interaction with the method SetText and then I manually call the method ForceMeshUpdate.
The only other propery of the component that I use is preferredHeight.
So, in sequence, I manually call SetText,...
Runtime allocation and huge CPU usage
I manually set the text at each interaction with the method SetText and then I manually call the method ForceMeshUpdate.
The only other propery of the component that I use is preferredHeight.
So, in sequence, I manually call SetText,...
Runtime allocation and huge CPU usage