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

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -