private void ImportBtn_onClick() { string selectFilePath = EditorUtility.OpenFilePanel("导入报告", EditorTools.GetProjectPath(), "json"); if (string.IsNullOrEmpty(selectFilePath)) { return; } _reportFilePath = selectFilePath; string jsonData = FileUtility.ReadFile(_reportFilePath); _buildReport = BuildReport.Deserialize(jsonData); _assetListViewer.FillViewData(_buildReport, _searchKeyWord); _bundleListViewer.FillViewData(_buildReport, _reportFilePath, _searchKeyWord); _summaryViewer.FillViewData(_buildReport); }
/// <summary> /// 获取默认的输出根路录 /// </summary> public static string GetDefaultOutputRoot() { string projectPath = EditorTools.GetProjectPath(); return($"{projectPath}/Bundles"); }