mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
do streaming unloading
This commit is contained in:
parent
0a8e3bb643
commit
4488390bd9
@ -106,15 +106,12 @@ namespace NewHorizons.Handlers
|
||||
foreach (var assetBundle in assetBundles)
|
||||
StreamingManager.LoadStreamingAssets(assetBundle);
|
||||
};
|
||||
/*
|
||||
sector.OnOccupantExitSector += _ =>
|
||||
{
|
||||
// UnloadStreamingAssets is patched to check IsBundleInUse first before unloading
|
||||
if (!sector.ContainsAnyOccupants(DynamicOccupant.Player | DynamicOccupant.Probe))
|
||||
foreach (var assetBundle in assetBundles)
|
||||
StreamingManager.UnloadStreamingAssets(assetBundle);
|
||||
};
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user