- Home /
GUI.CalcSize returning incorrect values
It seems from a cursory search that other are also having a problem with GUI.CalcSize(). For me, the problem appears to be when I set a font size for the style. When I don't set a font size, GUI.CalcSize() returns the correct value. When I do set a font size, it returns an incorrect value. Any fix for this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613121614im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get the number of lines in a GUI.Label by setting a max width. 2 Answers
guistyle.CalcSize returning unexpected values... 2 Answers
GUIStyle.CalcSize giving wrong answer 0 Answers
GUIStyle.CalcSize appears to break when your style specifies padding 1 Answer
Is it possible to detect which GUIStyleState is used? 1 Answer