public static void OnBuildEnd(AssetBundleCollector collector, bool isGen) { BuildBoy.ClearLua(); if (!isGen) { BuildBoy.ChangeUIToSprite(); GenVersion(collector); } AssetDatabase.Refresh(); Resources.UnloadUnusedAssets(); Debug.Log("打包结束!"); }
public static void OnBuildStart(AssetBundleBuildConfig config, bool isGen) { GameResGenerator.ReadGameRes(); BuildBoy.ClearGameRes(config); BuildBoy.CopyLua(); BuildBoy.GenSpriteRes(); if (!isGen) { #if UNITY_STANDALONE_WIN //UGUIAtlasMaker.GenAtlas(); #endif BuildBoy.ChangeUIToAtlas(); } AssetDatabase.Refresh(); //MyModelGenerater.BatchGenerateRolePrefabs(); //MonsterPrefabGenerator.BatchGeneratePrefab(); }
public void UpdateGameRes(string abName) { string fileName = PathUtil.GetFileNameWithoutExtension(resPath); BuildBoy.UpdateGameRes(type, fileName, abName, resPath); }