Update AssetBundleCollector

pull/4/head
hevinci 2022-03-16 11:33:21 +08:00
parent fb1b20060b
commit 6424a149bb
3 changed files with 6 additions and 6 deletions

View File

@ -305,9 +305,9 @@ namespace YooAsset.Editor
/// 获取所有收集的资源 /// 获取所有收集的资源
/// 注意:跳过了不写入资源路径的收集器 /// 注意:跳过了不写入资源路径的收集器
/// </summary> /// </summary>
public static List<AssetCollectInfo> GetAllCollectAssets() public static List<CollectAssetInfo> GetAllCollectAssets()
{ {
Dictionary<string, AssetCollectInfo> result = new Dictionary<string, AssetCollectInfo>(10000); Dictionary<string, CollectAssetInfo> result = new Dictionary<string, CollectAssetInfo>(10000);
for (int i = 0; i < Setting.Collectors.Count; i++) for (int i = 0; i < Setting.Collectors.Count; i++)
{ {
AssetBundleCollectorSetting.Collector collector = Setting.Collectors[i]; AssetBundleCollectorSetting.Collector collector = Setting.Collectors[i];
@ -327,8 +327,8 @@ namespace YooAsset.Editor
if (result.ContainsKey(assetPath) == false) if (result.ContainsKey(assetPath) == false)
{ {
var assetCollectInfo = new AssetCollectInfo(assetPath, collector.GetAssetTags(), isRawAsset); var collectInfo = new CollectAssetInfo(assetPath, collector.GetAssetTags(), isRawAsset);
result.Add(assetPath, assetCollectInfo); result.Add(assetPath, collectInfo);
} }
} }
} }

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace YooAsset.Editor namespace YooAsset.Editor
{ {
public class AssetCollectInfo public class CollectAssetInfo
{ {
/// <summary> /// <summary>
/// 资源路径 /// 资源路径
@ -20,7 +20,7 @@ namespace YooAsset.Editor
/// </summary> /// </summary>
public bool IsRawAsset { private set; get; } public bool IsRawAsset { private set; get; }
public AssetCollectInfo(string assetPath, List<string> assetTags, bool isRawAsset) public CollectAssetInfo(string assetPath, List<string> assetTags, bool isRawAsset)
{ {
AssetPath = assetPath; AssetPath = assetPath;
AssetTags = assetTags; AssetTags = assetTags;