mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-27 11:10:11 +00:00
feat: add EnsureBundleFileAsync operation
This commit is contained in:
@@ -50,6 +50,16 @@ namespace YooAsset
|
||||
return _fileSystem.LoadPackageBundleAsync(options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建资源包文件确保器
|
||||
/// </summary>
|
||||
/// <returns>返回确保资源包文件就绪的操作对象</returns>
|
||||
public FSEnsurePackageBundleOperation CreateBundleEnsurer()
|
||||
{
|
||||
var options = new FSEnsurePackageBundleOptions(Bundle);
|
||||
return _fileSystem.EnsurePackageBundleAsync(options);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建资源包下载器
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user