|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinestatic |
Gets the asset with the specified name. Throws an Exception if the asset does not exist.
| name | The path to the asset without extension, including the mod name (or Terraria) for vanilla assets. Eg "ModName/Folder/FileNameWithoutExtension" |
| mode | The desired timing for when the asset actually loads. Use ImmediateLoad if you need correct dimensions immediately, such as with UI initialization |
| T | : | class |
Definition at line 131 of file ModContent.cs.
References Terraria.Main.Assets, Terraria.Main.dedServ, Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.ModContent.SplitName(), and Terraria.ModLoader.ModLoader.TryGetMod().
Referenced by Terraria.ModLoader.ModContent.RequestIfExists< T >().
Here is the call graph for this function:
Here is the caller graph for this function: