//[MenuItem("Tools/Config工具/生成Excel的映射文件", false)] private static void WriteExcelNameToPath() { ExcelTranslatorUtility.WriteExcelNameToPath(ExcelFloder, (excelName, prog) => { string content = string.Format("读取Excel:【{0}】 ...", excelName); EditorUtility.DisplayProgressBar("生成Excel的映射文件...", content, 1f * prog); }); EditorUtility.ClearProgressBar(); }
public static Dictionary <string, ExcelWorksheet> ReadAllExcelConfigs(bool showDialog) { var ExcelSheets = ExcelTranslatorUtility.ReadALLExcelSheets(ExcelFloder, (excelName, prog) => { if (showDialog) { string content = string.Format("读取Excel:【{0}】 ...", excelName); EditorUtility.DisplayProgressBar("读取配置表", content, 1f * prog); } }); if (showDialog) { EditorUtility.ClearProgressBar(); } return(ExcelSheets); }