Quantcast
Channel: Questions in topic: "extents"
Viewing all articles
Browse latest Browse all 18

TextMesh.renderer.bounds.extents not 100% accurate?

$
0
0
I've been looking for a better way of getting the size of a TextMesh object, but every answer I've found relies on using it's renderer.bounds.center/extents properties. This works in general, but fails to give as precise results as other object's bounds properties. I was expecting that the bounds box would perfectly wrap around the quads that make up the TextMesh, but as you can see that is not the case. Also, I've noticed that modifying the LineSpacing property will change the box in unpredictable ways. ![alt text][1] [1]: /storage/temp/8824-textmesh.jpg I'd hate to find another text solution because it otherwise works like I'd expect it to. Has anybody else noticed this and found a way to get accurate results or am I not understanding something about TextMesh?

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>