static int UpdateFontAsset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TMPro.TextMeshPro obj = (TMPro.TextMeshPro)ToLua.CheckObject <TMPro.TextMeshPro>(L, 1);
         obj.UpdateFontAsset();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
 void Start()
 {
     text = GetComponent <TMPro.TextMeshPro>();
     text.ForceMeshUpdate();
     text.UpdateFontAsset();
 }