From ea99232d3ba45d3f1cdbc0549248ba1ac51b6441 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 29 Aug 2022 12:10:21 +0800 Subject: [PATCH] Update Samples --- .../Extension Sample/Scripts/Editor/PatchCompareWindow.cs | 4 ++-- Assets/YooAsset/Samples~/UniTask Sample.meta | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 Assets/YooAsset/Samples~/UniTask Sample.meta diff --git a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/PatchCompareWindow.cs b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/PatchCompareWindow.cs index 2ed5e78..e3c70e8 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/PatchCompareWindow.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/PatchCompareWindow.cs @@ -73,7 +73,7 @@ namespace YooAsset.Editor { foreach (var bundle in _changeList) { - EditorGUILayout.LabelField($"{bundle.BundleName} | {(bundle.SizeBytes / 1024)}K"); + EditorGUILayout.LabelField($"{bundle.BundleName} | {(bundle.FileSize / 1024)}K"); } } EditorGUILayout.EndScrollView(); @@ -117,7 +117,7 @@ namespace YooAsset.Editor { if (patchManifest1.TryGetPatchBundle(patchBundle2.BundleName, out PatchBundle patchBundle1)) { - if (patchBundle2.Hash != patchBundle1.Hash) + if (patchBundle2.FileHash != patchBundle1.FileHash) { changeList.Add(patchBundle2); } diff --git a/Assets/YooAsset/Samples~/UniTask Sample.meta b/Assets/YooAsset/Samples~/UniTask Sample.meta new file mode 100644 index 0000000..8fc9aa4 --- /dev/null +++ b/Assets/YooAsset/Samples~/UniTask Sample.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d24eb65eaa261cf4cb16dafe7f09b4ba +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: