This commit is contained in:
何冠峰
2025-10-09 19:10:26 +08:00
parent 15005b3d30
commit 0bde506aec
4 changed files with 25 additions and 2 deletions
@@ -308,6 +308,17 @@ namespace YooAsset
}
}
/// <summary>
/// 尝试卸载资源包
/// </summary>
public void TryUnloadBundle()
{
if (_resManager.AutoUnloadBundleWhenUnused)
{
_resManager.TryUnloadUnusedAsset(MainAssetInfo, 10);
}
}
/// <summary>
/// 结束流程
/// </summary>