Update AssetBundleReporter

pull/33/head
hevinci 2022-08-03 20:47:53 +08:00
parent 4ea52a9287
commit 195d1805e9
2 changed files with 6 additions and 6 deletions

View File

@ -310,11 +310,11 @@ namespace YooAsset.Editor
// Size
var label2 = element.Q<Label>("Label2");
label2.text = EditorUtility.FormatBytes(bundleInfo.SizeBytes);
label2.text = EditorUtility.FormatBytes(bundleInfo.FileSize);
// Hash
var label3 = element.Q<Label>("Label3");
label3.text = bundleInfo.Hash;
label3.text = bundleInfo.FileHash;
}
}
}

View File

@ -122,9 +122,9 @@ namespace YooAsset.Editor
else if (_sortMode == ESortMode.BundleSize)
{
if (_descendingSort)
return result.OrderByDescending(a => a.SizeBytes).ToList();
return result.OrderByDescending(a => a.FileSize).ToList();
else
return result.OrderBy(a => a.SizeBytes).ToList();
return result.OrderBy(a => a.FileSize).ToList();
}
else if (_sortMode == ESortMode.BundleTags)
{
@ -249,11 +249,11 @@ namespace YooAsset.Editor
// Size
var label2 = element.Q<Label>("Label2");
label2.text = EditorUtility.FormatBytes(bundleInfo.SizeBytes);
label2.text = EditorUtility.FormatBytes(bundleInfo.FileSize);
// Hash
var label3 = element.Q<Label>("Label3");
label3.text = bundleInfo.Hash;
label3.text = bundleInfo.FileHash;
// Tags
var label5 = element.Q<Label>("Label5");