- Home /
Text has stopped calculating its size in 5.2
I had a perfectly working chat component in 5.1 Now in 5.2 it does not work. The problem - Text sizes are always 0,0. They were calculating fine on 5.1 How do I fix this?
What I want: A chat like window where lines appear on the bottom of the window. After a new line appears, the previous one is shifted up. This was working perfectly in 5.1
Now in 5.2 this is broken. All lines are 0 width and height and are stuck on the bottom, invisible. If I change their size manually to something, I can see them and they behave normally. How do I make Texts calculate their sizes correctly?
My Chat structure is like this:
The overlord Chat object: http://i.imgur.com/Ig0fGl9.png
The content object in that Chat: http://i.imgur.com/R7UWWdu.png
The single line in chat: http://i.imgur.com/Lyg0RjH.png
The code that adds line to chat: http://i.imgur.com/q1I2kIZ.png
Your answer
![](https://koobas.hobune.stream/wayback/20220612033149im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unable to follow UI transition HOW-TO in Unity 5 0 Answers
How to make a UI Canvas not appear again after the first time the user hits the "I Agree" button. 2 Answers
Unity5 UI Different Screen Resolution and 2D Line problem 0 Answers
Resolution settings not working in build mode, but working perfectly in editor 0 Answers
How to attach a (that world type) canvas to a moving player? 0 Answers