TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ UnloadContent()

void Terraria.ModLoader.Mod.UnloadContent ( )
inlinepackageinherited

Definition at line 491 of file Mod.cs.

492 {
493 SystemLoader.OnModUnload(this);
494 Unload();
495 foreach (ILoadable item in content.Reverse())
496 {
497 item.Unload();
498 }
499 content.Clear();
500 equipTextures.Clear();
501 Assets?.Dispose();
502 }
readonly IDictionary< Tuple< string, EquipType >, EquipTexture > equipTextures
Definition Mod.cs:39
readonly IList< ILoadable > content
Definition Mod.cs:41
virtual void Unload()
This is called whenever this mod is unloaded from the game. Use it to undo changes that you've made i...
Definition Mod.cs:429

References Terraria.ModLoader.Mod.content, Terraria.ModLoader.Mod.equipTextures, Terraria.ModLoader.SystemLoader.OnModUnload(), Terraria.ModLoader.ILoadable.Unload(), and Terraria.ModLoader.Mod.Unload().

Referenced by Terraria.ModLoader.ModContent.UnloadModContent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: