Can a font be given a shader?

As above really?

I’ve been using the 3D Text game object and I’d like to be able to change its shader from GUI/Text Shader to one of the other standard shaders, say like diffuse. However it’s greyed out when I check it in the inspector… :frowning:

Any advice greatly appreciated

Create a Material. Drag the font Texture (expand the font in the Project view to see it) onto the Material. Apply shader to Material. Drag Material onto 3D Text.

Thanks for the reply moonjump.

I’m trying to drag the font texture onto the (any) material but it doesn’t want to?

Am I missing something?

Urgh this doesn’t make sense. Why can’t I drag (or pick from the picker inside a material) the font texture to a material??? Can you not do this with ttf fonts?

I am only developing for iOS, which restricts the font formats. Try different Character options on the font as my approach might not work with them all. This may give you some restrictions that you do not want, but try it to see if you can get a combination you are happy with.

@Moonjump, how do you know which font formats are restricted for ios? I’ve dev’ing for it too and I’ve never heard of this?

When you import a font with the project set to iOS, it will give a warning:

Ah right thanks for that.

Regarding your previous post what do you mean by trying different character options? What other options control a fonts shader other than its material option??

I didn’t know why you couldn’t drag the font texture onto a material. As I cannot use some Character options on the font, such as Dynamic, because of the iOS limits, I didn’t know if one of the Character options was causing the problem, so suggested you try different ones as a possible solution.

Another thing you can do is get the SaveFontTexture script from the Unify Wiki. Follow the instructions and you can export the font texture and use it on a material. This also allows you to alter the texture. Something I have done is replace a symbol with a character icon that I can use as an extra life symbol.