unity3d - How to use bitmap font in Text Mesh? -


i have make bitmap font, include ftn file , png sprite.

i can use on ugui creating fontsettings "custom font", how can use on text mesh or 3d text?

answer own question again, , again!

find solution book. change custom font material's shader.

i'm not @ shader, copy:

shader "custom/my3dfont" { properties {     _color ("main color", color) = (1, 1, 1, 0.5)     _maintex ("base (rgb) trans (a)", 2d) = "white" {} }  subshader {     tags {"queue"="transparent" "ignoreprojector"="true" "rendertype"="transparent"}     lod 100      zwrite off     blend srcalpha oneminussrcalpha      pass {         material {             diffuse [_color]         }           lighting off cull off ztest zwrite off fog { mode off }          settexture [_maintex] {             constantcolor [_color]             combine texture * constant         }     } } } 

Comments