Hi, I’m having a problem getting the font size used in a text panel.
I am trying to set the font size of a text panel to the font size used in the best fit size of another text panel.
The first panel has rolling text and I have a second panel off-screen that is set to best fit.
ui.bestFitSize.text = data.text;
print (ui.bestFitSize.cachedTextGenerator.fontSizeUsedForBestFit);
ui.dialogueText.fontSize = ui.bestFitSize.cachedTextGenerator.fontSizeUsedForBestFit;
StartCoroutine(WriteText(data.text));
No matter how much text is in the panel the best fit size is always output as 131, even though the actual panel is fit correctly.