- Home /
Figure out the pixel size of a character
Hi there,
I'm trying to figure out the pixel size of a character of a Text element(not the GUIText/TextMesh, but the UI.Text from Unity 4.6 UI), without luck.
Somebody has any idea about how to do this?
Thanks.
Comment
Answer by LSPressWorks · Apr 01, 2015 at 02:27 PM
http://forum.unity3d.com/threads/this-script-gives-you-objects-screen-size-in-pixels.48966/
I found this, but saw no predefined function in the api for this.
I dont't see how this could apply to my case. This code gets the "projected" 3D object on pixel size.. The Text component doesn't follow this logic... Bu thanks, the link was saved for the future.