I’m having some odd issues concerning some Text Mesh objects I have in my world when building my project to the webplayer. Occasionally when I load into the level, the Text Mesh is either garbled and illegible, or the font is not rendered at all. I’m printing the TextMesh.text, TextMesh.font, and the objects material on the Mesh Renderer at runtime and even when the bug happens, all of the values are initialized correctly according to the debug logs. I never seem to be missing a material or font, but they’ll occasionally render incorrectly, or just not at all.
The font that is created is dynamic, I’m taking the Impact font and changing its style to bold. The imported font in my project is set to Dynamic, and I have the Incl. Font Data bool checked. I’m using the 3D Text Shader under the GUI shaders for the object, and I change the color of the material during runtime. My font has a material assigned, and this issue never occurs during the editor playthrough.
Any ideas what could be causing this? I’ve tested it dozens of times in the webplayer environment, and it seems stable in Safari (have not seen this happen at all yet while debugging in Safari), but I can get it to occur after several attemps (sometimes it only takes 2-3 refreshes to see it break, other times its 5-6+ times) while loading it through Chrome and Firefox.
Thanks