- Home /
Calculate pixel length of string (not GUI)
Hey Guys,
i was wondering if there is a way to get the length of a string, which is going to be the value of a TextMesh. So its not GUI based, which i found out that strings on GUIstyle can be measured.
Thanks in advance.
Comment
Answer by tanoshimi · Sep 22, 2014 at 06:41 PM
A TextMesh is a 3d object - it has no "pixel length", as its appearance will vary depending on the camera through which it is being viewed.
Your answer
![](https://koobas.hobune.stream/wayback/20220613163550im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Rect Transforms not scaling the same? 1 Answer
TextMesh.renderer.bounds.extents not 100% accurate? 2 Answers
TextMeshPro " != " not working 1 Answer
How to calculate a TextMesh width without rendering it ? 2 Answers
Center TextMesh to 3DModel 1 Answer