LoadStaticContent
Introduction
When to call LoadStaticContent
Calling LoadStaticContent multiple times
SpaceShip.LoadStaticContent(ContentManager); // <- Will load content, assuming this is the first time it's being called
SpaceShip.LoadStaticContent(ContentManager); // <- Will not load any additional content, since ContentManager has already been used once
SpaceShip.LoadStaticContent("OtherContentManager"); // <- Will load content. Content will be loaded twice, once in ContentManager, once in "OtherContentManager"contentManagerName argument
static void CustomLoadStaticContent(string contentManagerName)
{
Character.LoadStaticContent(contentManagerName);
...This type has been loaded with a global content manager, then loaded with a non-global. This can lead to a lot of bugs
Last updated
Was this helpful?