Update YooAsset

This commit is contained in:
hevinci
2022-03-15 22:29:20 +08:00
parent 8583927c48
commit 6c0fbdae1f
12 changed files with 123 additions and 96 deletions
@@ -304,7 +304,7 @@ namespace YooAsset
foreach (var provider in _providers)
{
DebugSummy.DebugProviderInfo providerInfo = new DebugSummy.DebugProviderInfo();
DebugProviderInfo providerInfo = new DebugProviderInfo();
providerInfo.AssetPath = provider.AssetPath;
providerInfo.RefCount = provider.RefCount;
providerInfo.Status = (int)provider.Status;
@@ -66,16 +66,16 @@ namespace YooAsset
/// <summary>
/// 获取资源包的调试信息列表
/// </summary>
internal void GetBundleDebugInfos(List<DebugSummy.DebugBundleInfo> output)
internal void GetBundleDebugInfos(List<DebugBundleInfo> output)
{
foreach (var loader in _dependBundles)
{
var debugInfo = new DebugSummy.DebugBundleInfo();
debugInfo.BundleName = loader.BundleFileInfo.BundleName;
debugInfo.Version = loader.BundleFileInfo.Version;
debugInfo.RefCount = loader.RefCount;
debugInfo.Status = (int)loader.Status;
output.Add(debugInfo);
var bundleInfo = new DebugBundleInfo();
bundleInfo.BundleName = loader.BundleFileInfo.BundleName;
bundleInfo.Version = loader.BundleFileInfo.Version;
bundleInfo.RefCount = loader.RefCount;
bundleInfo.Status = (int)loader.Status;
output.Add(bundleInfo);
}
}
}
@@ -36,14 +36,14 @@ namespace YooAsset
/// <summary>
/// 获取资源包的调试信息列表
/// </summary>
internal void GetBundleDebugInfos(List<DebugSummy.DebugBundleInfo> output)
internal void GetBundleDebugInfos(List<DebugBundleInfo> output)
{
var ownerInfo = new DebugSummy.DebugBundleInfo();
ownerInfo.BundleName = OwnerBundle.BundleFileInfo.BundleName;
ownerInfo.Version = OwnerBundle.BundleFileInfo.Version;
ownerInfo.RefCount = OwnerBundle.RefCount;
ownerInfo.Status = (int)OwnerBundle.Status;
output.Add(ownerInfo);
var bundleInfo = new DebugBundleInfo();
bundleInfo.BundleName = OwnerBundle.BundleFileInfo.BundleName;
bundleInfo.Version = OwnerBundle.BundleFileInfo.Version;
bundleInfo.RefCount = OwnerBundle.RefCount;
bundleInfo.Status = (int)OwnerBundle.Status;
output.Add(bundleInfo);
DependBundles.GetBundleDebugInfos(output);
}