For some reason, the LoadContent method is not called in my components. For example, I have a Game class in which I do:
//Game.cs protected override void LoadContent() { editor = new Editor(...); Components.Add(editor); } //Editor.cs public class Editor : DrawableGameComponent{ Game game; public Editor(Game game, ...):base(game){ this.game = game; } //THIS method never gets called! protected override void LoadContent() { background = game.Content.Load<Texture2D>("background"); base.LoadContent(); } }
Any tips?
EDIT: if you remember that the initialization order and the LoadContent all work fine!
source share