diff --git a/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs b/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs index a970b9e..fc5f5eb 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/PersistentManager.cs @@ -181,6 +181,7 @@ namespace YooAsset /// public void SaveSandboxPackageVersionFile(string version) { + YooLogger.Log($"Save package version : {version}"); string filePath = GetSandboxPackageVersionFilePath(); FileUtility.WriteAllText(filePath, version); } diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs index f7a7fa1..e67993c 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/InitializationOperation.cs @@ -332,6 +332,7 @@ namespace YooAsset { PackageVersion = _loadBuildinManifestOp.Manifest.PackageVersion; _impl.ActiveManifest = _loadBuildinManifestOp.Manifest; + _impl.FlushManifestVersionFile(); //注意:解压内置清单并加载成功后保存该清单版本。 _steps = ESteps.PackageCaching; } else diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs index 1db5774..0019b21 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/UpdatePackageManifestOperation.cs @@ -63,7 +63,6 @@ namespace YooAsset TryLoadCacheManifest, DownloadManifest, LoadCacheManifest, - CheckDeserializeManifest, Done, }