Mark the text generator as invalid. This will force a full text generation the next time Populate is called.
static int Invalidate(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.TextGenerator obj = (UnityEngine.TextGenerator)ToLua.CheckObject(L, 1, typeof(UnityEngine.TextGenerator)); obj.Invalidate(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }