I want to now if it possible to get the width of a font character(at all font sizes),i need to know because it well help organize the interface more.Any input that can help me answer this question is appreicated
Than yu for answering ahead of time
1 Answer
1Try this
var size : Vector2 = GUI.skin.GetStyle("Label").CalcSize(GUIContent(Message));
GUI.Label(Screen.width/2 - size.x/2, Screen.height/2 - 25, size.x, 50);
If you are using GUI you can use GUIStyle.CalcSize() function
– dsada