Exemple #1
0
        /// <summary>
        /// 打包指定目录
        /// </summary>
        protected static void BuildSelectedDir(KTBuildBase build)
        {
            var select = Selection.activeObject;
            var path   = AssetDatabase.GetAssetPath(select);

            ListDirs(path, build.filesToBuild);
            build.ListFiles();
            build.ExecuteAssetsBuild();
        }
Exemple #2
0
 /// <summary>
 /// 打包指定目录
 /// </summary>
 protected static void BuildAll(KTBuildBase build)
 {
     ListDirs(build.GetResPath(), build.filesToBuild);
     build.ListFiles();
     build.ExecuteAssetsBuild();
 }