Skip to content

Commit

Permalink
资源释放时序优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Rachel committed Oct 5, 2024
1 parent d3914a9 commit 990222c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -945,14 +945,14 @@ await UniTask.WaitUntil(
#region 资源回收
public void UnloadUnusedAssets()
{
m_AssetPool.ReleaseAllUnused();
foreach (var package in PackageMap.Values)
{
if (package is { InitializeStatus: EOperationStatus.Succeed })
{
package.UnloadUnusedAssets();
}
}
m_AssetPool.ReleaseAllUnused();
}

public void ForceUnloadAllAssets()
Expand Down

0 comments on commit 990222c

Please sign in to comment.