feat: add EnsureBundleFileAsync operation

This commit is contained in:
何冠峰
2026-05-15 10:56:24 +08:00
parent 322c4a9847
commit 45ecd8baff
74 changed files with 1000 additions and 374 deletions

View File

@@ -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>