diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport.meta b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport.meta new file mode 100644 index 0000000..7508e72 --- /dev/null +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d6268d725eec21b4aae819adc1553f0e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildAssetInfo.cs similarity index 97% rename from Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs rename to Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildAssetInfo.cs index fa15038..e3b0306 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildAssetInfo.cs @@ -1,4 +1,5 @@ -using System.Collections; +using System; +using System.Collections; using System.Collections.Generic; namespace YooAsset.Editor @@ -6,6 +7,7 @@ namespace YooAsset.Editor /// /// 构建的资源信息类 /// + [Serializable] public class BuildAssetInfo { /// diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs.meta b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildAssetInfo.cs.meta similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleBuilder/BuildAssetInfo.cs.meta rename to Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildAssetInfo.cs.meta diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildBundleInfo.cs similarity index 98% rename from Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs rename to Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildBundleInfo.cs index 96eff3e..0422173 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildBundleInfo.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using System.Collections; using System.Collections.Generic; using UnityEditor; @@ -8,6 +9,7 @@ namespace YooAsset.Editor /// /// 构建的资源包信息类 /// + [Serializable] public class BuildBundleInfo { /// diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs.meta b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildBundleInfo.cs.meta similarity index 100% rename from Assets/YooAsset/Editor/AssetBundleBuilder/BuildBundleInfo.cs.meta rename to Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildBundleInfo.cs.meta diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs new file mode 100644 index 0000000..3fd7a33 --- /dev/null +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs @@ -0,0 +1,17 @@ +using System; +using System.IO; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace YooAsset +{ + /// + /// 构建报告 + /// + [Serializable] + public class BuildReport + { + + } +} \ No newline at end of file diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs.meta b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs.meta new file mode 100644 index 0000000..c778e61 --- /dev/null +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildReport/BuildReport.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f35afda8a63f874fb78877d65dafdd2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskGetBuildMap.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskGetBuildMap.cs index d411dec..2bf4c27 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskGetBuildMap.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskGetBuildMap.cs @@ -145,11 +145,11 @@ namespace YooAsset.Editor Dictionary buildAssets = new Dictionary(); // 1. 获取主动收集的资源 - List allCollectInfos = AssetBundleCollectorSettingData.GetAllCollectAssets(); + List allCollectInfos = AssetBundleCollectorSettingData.GetAllCollectAssets(); // 2. 对收集的资源进行依赖分析 int progressValue = 0; - foreach (AssetCollectInfo collectInfo in allCollectInfos) + foreach (CollectAssetInfo collectInfo in allCollectInfos) { string mainAssetPath = collectInfo.AssetPath;