Update Extension Sample

pull/35/head
hevinci 2022-08-05 14:40:50 +08:00
parent d6e3da322b
commit 2ff01d10b0
1 changed files with 4 additions and 4 deletions

View File

@ -84,8 +84,8 @@ namespace YooAsset.Editor
foreach (var patchBundle in patchManifest.BundleList) foreach (var patchBundle in patchManifest.BundleList)
{ {
fileCount++; fileCount++;
string sourcePath = $"{outputDirectory}/{patchBundle.Hash}"; string sourcePath = $"{outputDirectory}/{patchBundle.FileName}";
string destPath = $"{AssetBundleBuilderHelper.GetStreamingAssetsFolderPath()}/{patchBundle.Hash}"; string destPath = $"{AssetBundleBuilderHelper.GetStreamingAssetsFolderPath()}/{patchBundle.FileName}";
EditorTools.CopyFile(sourcePath, destPath, true); EditorTools.CopyFile(sourcePath, destPath, true);
} }
} }
@ -97,8 +97,8 @@ namespace YooAsset.Editor
continue; continue;
fileCount++; fileCount++;
string sourcePath = $"{outputDirectory}/{patchBundle.Hash}"; string sourcePath = $"{outputDirectory}/{patchBundle.FileName}";
string destPath = $"{AssetBundleBuilderHelper.GetStreamingAssetsFolderPath()}/{patchBundle.Hash}"; string destPath = $"{AssetBundleBuilderHelper.GetStreamingAssetsFolderPath()}/{patchBundle.FileName}";
EditorTools.CopyFile(sourcePath, destPath, true); EditorTools.CopyFile(sourcePath, destPath, true);
} }
} }