mirror of https://github.com/tuyoogame/YooAsset
Update AssetBundleCollector
parent
fb1b20060b
commit
6424a149bb
|
@ -305,9 +305,9 @@ namespace YooAsset.Editor
|
|||
/// 获取所有收集的资源
|
||||
/// 注意:跳过了不写入资源路径的收集器
|
||||
/// </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++)
|
||||
{
|
||||
AssetBundleCollectorSetting.Collector collector = Setting.Collectors[i];
|
||||
|
@ -327,8 +327,8 @@ namespace YooAsset.Editor
|
|||
|
||||
if (result.ContainsKey(assetPath) == false)
|
||||
{
|
||||
var assetCollectInfo = new AssetCollectInfo(assetPath, collector.GetAssetTags(), isRawAsset);
|
||||
result.Add(assetPath, assetCollectInfo);
|
||||
var collectInfo = new CollectAssetInfo(assetPath, collector.GetAssetTags(), isRawAsset);
|
||||
result.Add(assetPath, collectInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace YooAsset.Editor
|
||||
{
|
||||
public class AssetCollectInfo
|
||||
public class CollectAssetInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 资源路径
|
||||
|
@ -20,7 +20,7 @@ namespace YooAsset.Editor
|
|||
/// </summary>
|
||||
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;
|
||||
AssetTags = assetTags;
|
Loading…
Reference in New Issue