static void ExportAllExcelToSQLite3() { window = CreateInstance <SQLite3Creator>(); window.minSize = new Vector2(500, 600); window.maxSize = new Vector2(500, 2000); window.isSingleExcel = false; window.Show(); }
static void ExportExcelToSQLite3() { Object obj = Selection.activeObject; List <SheetParameter> parameters = LoadOneExcel(AssetDatabase.GetAssetPath(obj)); if (null != parameters) { window = CreateInstance <SQLite3Creator>(); window.minSize = new Vector2(500, 600); window.maxSize = new Vector2(500, 2000); window.isSingleExcel = true; window.sheetParameters = parameters; window.Show(); } else { EditorUtility.DisplayDialog("Error", "请选择一个Excel文件。", "确定"); } }