UnityEngine.UI.Text.FontTextureChanged C# (CSharp) Method

FontTextureChanged() public method

Called by the [FontUpdateTracker] when the texture associated with a font is modified.

public FontTextureChanged ( ) : void
return void
        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();
                    }
                }
            }
        }

Usage Example

 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);
 }
All Usage Examples Of UnityEngine.UI.Text::FontTextureChanged