Hey,
for my Quiz App I Change the Question and then wait one Frame and then check the prefferred Height then set the Size of the Text to the Height.
As far so good, this works… mostly.
I have some questions, where this does not work => I get a wrong Height, so my whole design gets pushed up and I can’t read the last line.
This is where it doesnt work.
Here it does work.
I tried it with:
Text.preferredHeight
and Text.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, Frage_Height);
Content Size Fitter and Frage.rectTransform.rect.size.y
And yes, between setting the Text and Getting the Height I wait via yield return null
And like I said, it mostly works.
The Questions are in German, but that doesn’t matter sinze the Quiz will be German only.