diff --git a/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs b/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs index e18e340..9017fd8 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/CacheFileInfo.cs @@ -12,7 +12,7 @@ namespace YooAsset /// public static void WriteInfoToFile(string filePath, string dataFileCRC, long dataFileSize) { - using (FileStream fs = new FileStream(filePath, FileMode.Create)) + using (FileStream fs = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.Read)) { SharedBuffer.Clear(); SharedBuffer.WriteUTF8(dataFileCRC);