mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
unload streaming in custom systems
This commit is contained in:
parent
01866cc6be
commit
20126dfe91
@ -42,6 +42,15 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
public static void Init(List<NewHorizonsBody> bodies)
|
public static void Init(List<NewHorizonsBody> bodies)
|
||||||
{
|
{
|
||||||
|
// TH gets preloaded in title screen. custom systems dont need this
|
||||||
|
if (Main.Instance.CurrentStarSystem is not ("SolarSystem" or "EyeOfTheUniverse"))
|
||||||
|
{
|
||||||
|
foreach (var bundle in StreamingManager.s_activeBundles)
|
||||||
|
{
|
||||||
|
StreamingManager.UnloadStreamingAssets(bundle.assetBundleName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start by destroying all planets if need be
|
// Start by destroying all planets if need be
|
||||||
if (Main.SystemDict[Main.Instance.CurrentStarSystem].Config.destroyStockPlanets)
|
if (Main.SystemDict[Main.Instance.CurrentStarSystem].Config.destroyStockPlanets)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user