| 1234567891011121314151617181920212223 | 
							- using FairyGUI;
 
- namespace GFGGame
 
- {
 
-     public class FGUILauncher
 
-     {
 
-         public static void Init()
 
-         {
 
- #if (UNITY_5 || UNITY_5_3_OR_NEWER)
 
-             //Use the font names directly
 
-             UIConfig.defaultFont = "Microsoft YaHei";
 
- #else
 
-         //Need to put a ttf file into Resources folder. Here is the file name of the ttf file.
 
-         // UIExcelConfig.defaultFont = "afont";
 
- #endif
 
-             //对于FGUI来说,其内部在执行 `UIPackage.RemovePackage` 时会进行`ab.Unload(true)`操作,应该是个很贴心的设计,但我们xasset需要管理资源的引用计数,所以不需要这个贴心的功能,故:
 
-             UIPackage.unloadBundleByFGUI = false;
 
-             //设置CustomLoader
 
-             UIObjectFactory.SetLoaderExtension(typeof(GFGGLoader));
 
-         }
 
-     }
 
- }
 
 
  |