コード例 #1
0
        public static void OnBuildEnd(AssetBundleCollector collector, bool isGen)
        {
            BuildBoy.ClearLua();

            if (!isGen)
            {
                BuildBoy.ChangeUIToSprite();
                GenVersion(collector);
            }
            AssetDatabase.Refresh();
            Resources.UnloadUnusedAssets();
            Debug.Log("打包结束!");
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        public void UpdateGameRes(string abName)
        {
            string fileName = PathUtil.GetFileNameWithoutExtension(resPath);

            BuildBoy.UpdateGameRes(type, fileName, abName, resPath);
        }