diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystem.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystem.cs index 3f833112..946b9ab9 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystem.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystem.cs @@ -126,7 +126,7 @@ namespace YooAsset public virtual FSDownloadFileOperation DownloadFileAsync(PackageBundle bundle, DownloadFileOptions options) { // 注意:业务层的解压下载器会依赖内置文件系统的下载方法 - options.ImportFilePath = GetBuildinFileLoadPath(bundle); + options.LocalFilePath = GetBuildinFileLoadPath(bundle); return _unpackFileSystem.DownloadFileAsync(bundle, options); } public virtual FSLoadBundleOperation LoadBundleFile(PackageBundle bundle) diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/internal/DownloadCenterOperation.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/internal/DownloadCenterOperation.cs index 6db35cde..9523ed52 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/internal/DownloadCenterOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultCacheFileSystem/Operation/internal/DownloadCenterOperation.cs @@ -84,7 +84,7 @@ namespace YooAsset // 创建新的下载器 DefaultDownloadFileOperation newDownloader; - if (string.IsNullOrEmpty(options.ImportFilePath)) + if (string.IsNullOrEmpty(options.LocalFilePath)) { // 远端下载地址 options.MainURL = _fileSystem.RemoteServices.GetRemoteMainURL(bundle.FileName); @@ -107,7 +107,7 @@ namespace YooAsset else { // 注意:把本地文件路径指定为可下载地址 - options.MainURL = DownloadSystemHelper.ConvertToWWWPath(options.ImportFilePath); + options.MainURL = DownloadSystemHelper.ConvertToWWWPath(options.LocalFilePath); options.FallbackURL = options.MainURL; // 创建新的下载器 diff --git a/Assets/YooAsset/Runtime/FileSystem/Operation/FSDownloadFileOperation.cs b/Assets/YooAsset/Runtime/FileSystem/Operation/FSDownloadFileOperation.cs index d9f1a170..1aa6319f 100644 --- a/Assets/YooAsset/Runtime/FileSystem/Operation/FSDownloadFileOperation.cs +++ b/Assets/YooAsset/Runtime/FileSystem/Operation/FSDownloadFileOperation.cs @@ -24,9 +24,9 @@ namespace YooAsset public string FallbackURL { set; get; } /// - /// 导入的本地文件路径 + /// 拷贝的本地文件路径 /// - public string ImportFilePath { set; get; } + public string LocalFilePath { set; get; } public DownloadFileOptions(int failedTryAgain, int timeout) { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/BundleInfo.cs b/Assets/YooAsset/Runtime/ResourcePackage/BundleInfo.cs index 09a6db29..ec9cc439 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/BundleInfo.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/BundleInfo.cs @@ -39,7 +39,7 @@ namespace YooAsset public FSDownloadFileOperation CreateDownloader(int failedTryAgain, int timeout) { DownloadFileOptions options = new DownloadFileOptions(failedTryAgain, timeout); - options.ImportFilePath = _importFilePath; + options.LocalFilePath = _importFilePath; return _fileSystem.DownloadFileAsync(Bundle, options); } diff --git a/Assets/YooAsset/Runtime/Services/ICopyLocalFileServices.cs b/Assets/YooAsset/Runtime/Services/ICopyLocalFileServices.cs index 5a128704..6124649d 100644 --- a/Assets/YooAsset/Runtime/Services/ICopyLocalFileServices.cs +++ b/Assets/YooAsset/Runtime/Services/ICopyLocalFileServices.cs @@ -21,6 +21,7 @@ namespace YooAsset /// /// 本地文件拷贝服务类 + /// 备注:包体内文件拷贝,沙盒内文件导入都会触发该服务! /// public interface ICopyLocalFileServices {