- Home /
using a different shader on font material
Hi
I am using the Standard Assets->Fonts->Courier->font material on a GO to display changing text. The font material commonly uses the shader: GUI/Text Shader, but I would like to use GUI/Text Shader DepthTest like the Courier does. I can change the settings in the Editor while the program is running, but not before hand, is there a way I can do this in C#? (like set material shader to ...)
thanks.
Answer by Mike 3 · Aug 30, 2010 at 12:23 PM
You can just create a brand new material and set the shader to whatever you like, then add the texture from the foldout for the font. It also allows you to set the colour, something which the default material won't allow either
What does "then add the texture from the foldout for the font." mean?
You expand the font (with the triangle to the left), then there's a texture inside
Your answer
![](https://koobas.hobune.stream/wayback/20220613072335im_/https://answers.unity.com/themes/thub/images/avi.jpg)