From 7c4dbb1f38e45ae2691dc148adf4cb76befbce20 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 27 Feb 2023 19:10:56 +0800 Subject: [PATCH] update asset bundle builder --- .../AssetBundleBuilder/BuildReport/ReportBundleInfo.cs | 5 +++++ .../Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs index c34828a..0f01cde 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/ReportBundleInfo.cs @@ -48,6 +48,11 @@ namespace YooAsset.Editor /// public string[] Tags; + /// + /// 引用该资源包的ID列表 + /// + public int[] ReferenceIDs; + /// /// 获取资源分类标签的字符串 /// diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs index c81b05b..3df3427 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateReport.cs @@ -94,6 +94,7 @@ namespace YooAsset.Editor reportBundleInfo.FileCRC = patchBundle.FileCRC; reportBundleInfo.FileSize = patchBundle.FileSize; reportBundleInfo.Tags = patchBundle.Tags; + reportBundleInfo.ReferenceIDs = patchBundle.ReferenceIDs; reportBundleInfo.IsRawFile = patchBundle.IsRawFile; reportBundleInfo.LoadMethod = (EBundleLoadMethod)patchBundle.LoadMethod; buildReport.BundleInfos.Add(reportBundleInfo);