3
« on: June 29, 2013, 01:29:17 am »
Greetings,
I'm working on adding tk2dtextmeshes to dynamically created gameobjects in code. I've set up the material, text, pixelperfect, and have a Commit() call but the gameobjects still do not show up. When running the game, I can select the new gameobjects and I see that everything looks correct except for the mesh filter (it reads "none"). From what I have read the filter is dynamically created, however I can't seem to be able to generate it using any function calls to mesh's tied to the gamobject or changing the textmeshes scale. If I select any of the scale altering buttons for the textmesh in the UI (Like 1:1, BakeScale, etc) the mesh filter will generate and the object will be displayed correctly. Obviously, clicking in the UI to get text to show up isn't optimal... Any help would be greatly appreciated.
Sorry if this is a basic question, but I haven't been able to find a useful resource in quite a while.
Thanks,
Paul