Unload asset bundles on reload

This commit is contained in:
Ben C 2022-02-25 19:25:05 -05:00
parent 60442e5725
commit a22ef0f124

View File

@ -140,6 +140,10 @@ namespace NewHorizons
{
BodyDict["SolarSystem"] = new List<NewHorizonsBody>();
SystemDict["SolarSystem"] = new NewHorizonsSystem("SolarSystem", new StarSystemConfig(null), this);
foreach (AssetBundle bundle in AssetBundles.Values)
{
bundle.Unload(true);
}
AssetBundles.Clear();
Logger.Log("Begin reload of config files...", Logger.LogType.Log);