Hello! I’m having some issues right now trying to edit a font so it can be outlined. I used create editable font all well and good (since i’m using Unity 4), however actually editing the .png file it gives me is giving me a lot of trouble. I open it in photoshop and edit my color outline i want, but then when i save it and try to use it in Unity, it’ll just turn into a square of the color it asks for in the inspector. and if i just change the color to say, green in photoshop, it doesn’t show up at all. Can anyone help me out a little? I’m not that experienced here lol i’m sorry
Try using this shader:
Shader "GUI/Textured Text Shader"
{
Properties {
_MainTex ("Font Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
}
SubShader {
Lighting Off
cull off
ztest always
Zwrite off
Fog { Mode Off }
Tags {"Queue" = "Transparent" }
Pass {
Blend SrcAlpha OneMinusSrcAlpha
SetTexture [_MainTex] {
constantColor [_Color]
Combine texture * constant, texture * constant
}
}
}
}
Its on the wiki:
http://wiki.unity3d.com/index.php?title=TexturedFont