- Home /
Is there ANY way to enter "Font Material" in the inspector?
I have a project with about 200 "SpriteText" objects (some 3rd-party plugin, A&B I think). These objects have a mesh filter, mesh renderer and of course the "SpriteText" script. I need to convert them to use TextMesh instead.
I have tried to script this process by adding a TextMesh component, copying the necessary fields over and disabling the SpriteText.
The sticking point is the MeshRenderer. It is left with the wrong material, and there seems to be no way to choose the "Font Material" that would have been added by default if the MeshRenderer was created automatically. There's no way to remove the MeshRenderer and re-add it, because SpriteText and TextMesh both depend on it.
I get the feeling I am doing it wrong, but if anyone can point me in the right direction, it would be a big help!