I've been using this static TextureManager class that allows you to call textures you load in through the class. However, this time in a different project, it's unable to find the texture files and therefore keeps throwing null reference errors.
LoadContent in TextureManager class:
public static void LoadContent(ContentManager content)
{
Monster1 = content.Load<Texture2D>(@"Textures/IfritHead");
Monster2 = content.Load<Texture2D>(@"Textures/DragonHead");
}
1. My content.rootdirectory in game1(not sure if this matters) is set to "Content".
2. I have added the texture files into the content pipeline(I'm assuming there is some problem here, but as I've mentioned before, I've used this class before but I still can't find the problem)
3. I have set the properties settings for the textures to "Copy if newer".
4. I read somewhere that reinstalling XNA might help, is this true?
5. I have used this class in other projects before and it works completely fine.
6. I'm using VS 2015 and XNA 3.0 if that helps with anything.
Does anyone know how to properly import assets? I'm not sure if I'm missing something very obvious...