c# - How to change font in realtime in Unity? -
c# - How to change font in realtime in Unity? -
i tried alter font c# script in real time. changed in inspector text mesh looks blended. when pause , alter font , homecoming desired 1 looks fine.
so how prepare issue ? bug ?
edit here code:
public textmesh text; void awake() { en_font = resources.load<font>(“font name”); text.font = en_font; }
try code :
font arialfont = (font)resources.getbuiltinresource (typeof(font), "arial.ttf"); textmesh.font = arialfont; textmesh.renderer.sharedmaterial = arialfont.material; c# fonts unity3d
Comments
Post a Comment