Example #1
0
    //通用UI
    static void ExportAssetCommonUI()
    {
        List <string> tabPaths     = ToolsConst.GetCommonUIFilePath();
        List <string> paths        = new List <string>();
        List <string> pathFiles    = new List <string>();
        List <string> includeNames = new List <string>();

        includeNames.Add(".prefab");
        foreach (var v in tabPaths)
        {
            Recursive(v, paths, pathFiles, includeNames);
        }
        //给文件设置AssetBundleName
        ActivePrefab(pathFiles, "ui");
    }
    //通用的UI
    static void ExportAssetCommonUI()
    {
        List <string> tabPaths     = ToolsConst.GetCommonUIFilePath(); //目标AB路径
        List <string> paths        = new List <string>();
        List <string> pathFiles    = new List <string>();
        List <string> includeNames = new List <string>(); //拓展名

        includeNames.Add(".prefab");

        //把该路径下的所有.prefab 路径找出来放入 pathFiles
        foreach (var v in tabPaths)
        {
            Recursive(v, paths, pathFiles, includeNames);
        }

        ActivePrefab(pathFiles, "ui");
    }