Called by the [FontUpdateTracker] when the texture associated with a font is modified.
public void FontTextureChanged() { if ((this != null) && !this.m_DisableFontTextureRebuiltCallback) { this.cachedTextGenerator.Invalidate(); if (this.IsActive()) { if (CanvasUpdateRegistry.IsRebuildingGraphics() || CanvasUpdateRegistry.IsRebuildingLayout()) { this.UpdateGeometry(); } else { this.SetAllDirty(); } } } }
static int FontTextureChanged(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Text"); obj.FontTextureChanged(); return(0); }