Last active
July 16, 2020 06:22
-
-
Save mousedoc/7782009a7ccf687e7dfcbbfcb8d84b88 to your computer and use it in GitHub Desktop.
Revisions
-
mousedoc revised this gist
Jul 16, 2020 . No changes.There are no files selected for viewing
-
mousedoc revised this gist
Jul 16, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ public static class FontExtension { // Call it when the type of the string assigned to the global Text component is minimal. // XXX : If font is in AssetBundle, it may not work correctly. public static void RefreshDynamicTexture(this Font font) { if (font == null || font.dynamic == false) -
mousedoc created this gist
Jul 16, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ public static class FontExtension { public static void RefreshDynamicTexture(this Font font) { if (font == null || font.dynamic == false) return; Resources.UnloadAsset(font); } }