mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
unload immediate
This commit is contained in:
parent
20126dfe91
commit
d38d9fa1c8
@ -47,7 +47,8 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
foreach (var bundle in StreamingManager.s_activeBundles)
|
foreach (var bundle in StreamingManager.s_activeBundles)
|
||||||
{
|
{
|
||||||
StreamingManager.UnloadStreamingAssets(bundle.assetBundleName);
|
// save memory NOW instead of next frame when other stuff has loaded and taken memory
|
||||||
|
bundle.UnloadImmediate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user