Is there any way to find out how big a string will be on screen.
I want to know how large I have to create my rect for GUILayout.BeginArea();
Thanks, stringa
Is there any way to find out how big a string will be on screen.
I want to know how large I have to create my rect for GUILayout.BeginArea();
Thanks, stringa
You'll want to use this:
var textDimensions = GUI.skin.label.CalcSize(new GUIContent("text"));
And textDimensions.x will give you your text width.