- Home /
Get the width of a Text element?
I want to know if it's possible to calculated the exact width in pixel of a given string in a text component. The height correspond to the fontSize, but the width can change for some font. I'm talking about the UnityEngine.UI.Text component in 4.6.
Like the .NET function: Graphics.MeasureString http://msdn.microsoft.com/en-us/library/9bt8ty58%28v=vs.110%29.aspx
Comment