- Home /
Access mesh for TextMesh or GuiText
What I need:
Get the mesh generated by TextMesh, then I get the accurate size and UV. Renderer.bounds' value seems too strange.
What I want to do:
I need to adjust the scale of 3D Text in rumtime, to make it keep a constant size on screen, like 2D GUI. And to make it pixel perfect, I need to know the Text's actually size, and its UV, so I can calculate its scale accurately.
I tried shader before, but failed, because dynamic batching destroyed them!
Further More:
I couldn't get GuiText's mesh either. If I got them, I can build its normal, and then using normal to do some outline effect in shaders. Without noraml, Unity can only do very little dynamic text effect....
Is there someone can give me a better way? Thanks! Sorry for my English.
Answer by Jare · Dec 25, 2012 at 05:16 PM
If the meshes are not accessible, is there another way to do some outline or shadow text effect ??
We cannot use bitmap font because we need to support full unicode character set.
Any suggestions are welcome =)
Your answer
![](https://koobas.hobune.stream/wayback/20220613085905im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to export a tessellated mesh? 0 Answers
Transparency / depth problem 0 Answers
Change Z offset of lines 1 Answer
Objects Not Visible In Low End Computer. (Shader Error) 1 Answer
Shader mesh not being effected by directional lights? 1 Answer